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)
bottom coordinate of the Rectangle
absolute center of this rectangle on the horizontal axis
absolute center of this rectangle on the vertical axis
height of the Rectangle
left coordinate of the Rectangle
right coordinate of the Rectangle
top coordinate of the Rectangle
width of the Rectangle
check if this rectangle is identical to the specified one
true if equals
check if this rectangle is intersecting with the specified one
true if overlaps
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
set new value to the rectangle shape
position of the Rectangle
position of the Rectangle
width of the rectangle, or an array of vector defining the rectangle
Optional
h: numberheight of the rectangle, if a numeral width parameter is specified
Rest
...args: anythis rectangle
a rectangle Object