makeBox

fun makeBox(halfWidth: Float, halfHeight: Float): Polygon

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

Parameters

halfWidth

The half-width of the box (x-axis extent)

halfHeight

The half-height of the box (y-axis extent)