MutableRegularPolygon

constructor(center: Vector2F, orientation: ComplexF, sideLength: Float, sideCount: Int)

Creates a new instance of MutableRegularPolygon.

Parameters

orientation

the value is expected to be normalized.

Throws

when sideCount is less than two.


constructor(regularTriangle: MutableRegularTriangle)

Creates a new instance of MutableRegularPolygon from given regularTriangle.


constructor(square: MutableSquare)

Creates a new instance of MutableRegularPolygon from given square.