regularPolygonPoints

View source regularPolygonPoints ( sides: number , radius: number , rotation?: number , centerY?: number ) : Vector2[]

Generates a regular polygon in the XY plane.

Parameters

Name Description Default
sides — —
radius — —
rotation? — 0
centerY? — 0