Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.67 KB

decentraland-ecs.arc2.md

File metadata and controls

33 lines (23 loc) · 1.67 KB

Home > decentraland-ecs > Arc2

Arc2 class

This represents an arc in a 2d space.

Signature:

export declare class Arc2 

Constructors

Constructor Modifiers Description
(constructor)(startPoint, midPoint, endPoint) Creates an Arc object from the three given points : start, middle and end.

Properties

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