Mutable Regular Polygon
Represents a mutable transformable regular polygon in a two-dimensional Euclidean space.
Constructors
Creates a new instance of MutableRegularPolygon.
Creates a new instance of MutableRegularPolygon from given regularTriangle.
Creates a new instance of MutableRegularPolygon from given square.
Properties
Returns the circumradius of this shape.
Returns the exterior angle of this shape.
Returns the interior angle of this shape.
Returns the orientation of this object in reference to the origin of ComplexF.ONE.
Returns the read-only list of points of this regular polygon.
Returns the position of this object in reference to the origin of Vector2F.ZERO.
Returns the side length of this shape.
Functions
Calibrates the properties of this instance. If the orientation cannot be normalized, it will take the value of ONE.
Returns the closest point on this regular polygon to the given point.
Returns the center of this regular polygon.
Returns the orientation of this regular polygon.
Returns the sideLength of this regular polygon.
Returns the sideCount of this regular polygon.
Indicates whether the other MutableRegularPolygon is equal to this one.
Returns true if this regular polygon intersects the given ray.
Moves this object by a displacement.
Returns a copy of this object that is moved by a displacement.
Returns a copy of this object that is moved to the position.
Creates an iterator over the points of this regular polygon.
Rotates this object around the point to the orientation.
Returns a copy of this object that is rotated around the point to the orientation.
Returns a copy of this object that is rotated by a rotation.
Returns a copy of this object that is rotated to the orientation.
Returns a copy of this object that is scaled by a factor.
Creates a new instance of MutableRegularTriangle from this regular polygon if the sideCount is equal to 3, otherwise returns null.
Creates a new instance of MutableSquare from this regular polygon if the sideCount is equal to 4, otherwise returns null.
Creates a new instance of RegularTriangle from this regular polygon if the sideCount is equal to 3, otherwise returns null.
Transforms this object by moving by a displacement and rotating by a rotation.
Transforms this object by moving by a displacement, rotating by a rotation, and scaling by a scaleFactor.
Returns a copy of this object that is moved by a displacement and rotated by a rotation.
Returns a copy of this object that is moved by a displacement, rotated by a rotation, and scaled by a scaleFactor.
Returns a copy of this object that is moved to the position and rotated to the orientation.
Transforms this object by moving to the position and rotating to the orientation.