Home > decentraland-ecs > Arc2
This represents an arc in a 2d space.
Signature:
export declare class Arc2
Constructor | Modifiers | Description |
---|---|---|
(constructor)(startPoint, midPoint, endPoint) | Creates an Arc object from the three given points : start, middle and end. |
Property | Modifiers | Type | Description |
---|---|---|---|
angle | Angle |
Defines the angle of the arc (from mid point to end point). | |
centerPoint | Vector2 |
Defines the center point of the arc. | |
endPoint | Vector2 |
Defines the end point of the arc | |
midPoint | Vector2 |
Defines the mid point of the arc | |
orientation | Orientation |
Defines the orientation of the arc (clock wise/counter clock wise). | |
radius | number |
Defines the radius of the arc. | |
startAngle | Angle |
Defines the start angle of the arc (from start point to middle point). | |
startPoint | Vector2 |
Defines the start point of the arc |