Triangle

Triangle

A triangular shape.

Constructor

new Triangle(base, height, angle)

Source:
Parameters:
Name Type Description
base number Length of one side.
height number Length of a second side.
angle number The angle between the two sides.

Extends

Classes

Triangle

Members

angle :number

Source:
Overrides:
Type:
  • number

geometry :Geometry

Description:
  • Keeps the original normals and vertices of this shape
Source:
Overrides:
Keeps the original normals and vertices of this shape
Type:

(readonly) type :number

Description:
  • Used to determine what type of shape this is.
Source:
Overrides:
Used to determine what type of shape this is.
Type:
  • number

vertices :Array.<Vector2>

Description:
  • The vertices describing the shape.
Source:
Overrides:
The vertices describing the shape.
Type: