Readonly
areaGets the are of the shape.
Readonly
perimeterGets the perimeter of the shape.
Checks if the given point is located inside the shape.
The reference point.
true if the point is inside the shape.
Checks if the current shape intersect with the given one.
The reference shape.
true it the two shapes intersect, otherwise false.
Checks if the given point is in the edge of the shape.
The reference point.
A value used as a threshold / range to check if the point is on the line.
Rotates the shape by the given angle in degree, around a point.
The rotation angle.
The origin from which the rotation is supposed to be done.
Translates the shape using the given vector for direction.
The vector defining the direction.
Generated using TypeDoc
Defines common methods and properties exposed by a closed shape.