worldBorder

fun worldBorder(width: Double, height: Double): Circle

Returns the circle centered at the model-space origin that circumscribes an origin-centered width × height rectangle.

Its radius is the rectangle's half-diagonal, so the rectangle lies entirely inside the circle: any line crossing the rectangle also crosses the circle, and the chord between the crossing points covers the line's whole visible span. Renderers clip an infinite line by meeting it with this circle and drawing the chord between the resulting dipole's endpoints.

Return

The circumscribing Circle, classic orientation.

Parameters

width

The rectangle's horizontal extent.

height

The rectangle's vertical extent.


Returns the circle centered at the model-space origin that circumscribes this bounds' width × height rectangle.

Delegates to the two-argument worldBorder, ignoring SceneBounds.minX and SceneBounds.minY: the circle sits at the origin regardless of the bounds' offset — the renderers' offset-ignoring clip convention.

Receiver

The bounds whose extents size the circle.

Return

The circumscribing Circle, classic orientation.