Companion

object Companion

Functions

Link copied to clipboard
fun makeBox(halfWidth: Float, halfHeight: Float): Polygon

Create a box (rectangle) polygon centered at the origin.

Link copied to clipboard
fun makeOffsetBox(halfWidth: Float, halfHeight: Float, center: Vec2, angle: Float = 0.0f): Polygon

Create a box (rectangle) polygon with an offset center.

Link copied to clipboard
fun makeRoundedBox(halfWidth: Float, halfHeight: Float, radius: Float): Polygon

Create a rounded box polygon.