Array of points defining the Polygon
Note: If you manually change points
, you must call recalc
afterwards so that the changes get applied correctly.
origin point of the Polygon
the shape type (used internally)
Rotate this Polygon (counter-clockwise) by the specified angle (in radians).
The angle to rotate (in radians)
Optional
v: Vector2d | ObservableVector2dan optional point to rotate around
Reference to this object for method chaining
a line segment Object
Param: x
origin point of the Line
Param: y
origin point of the Line
Param: points
array of vectors defining the Line