Constructor
new EquilateralTriangle(center, side_length, rotationopt)
Creates a new EquilateralTriangle from a center point and side length.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
center | Point2D | The center Point2D of the equilateral triangle. | |
side_length | number | The side length of the equilateral triangle. | |
rotation | number | | <optional> | The rotation of the equilateral triangle, if any. |
- Source
Classes
Members
area
Returns the area of the equilateral triangle.
- Source
center
Returns the center Point2D of the equilateral triangle.
- Source
height
Returns the height of the equilateral triangle.
- Source
perimeter
Returns the perimeter of the equilateral triangle.
- Source
side_length
Returns the side length of the equilateral triangle.
- Source
triangle
Creates a Triangle from the equilateral triangle.
- Source
vector_object_builder
Creates a VectorObjectBuilder from the equilateral triangle.
- Source