makeRoundedBox

fun makeRoundedBox(halfWidth: Float, halfHeight: Float, radius: Float): Polygon

Create a rounded box polygon.

Parameters

halfWidth

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

halfHeight

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

radius

The radius for rounding the corners