Package-level declarations

Viewport geometry: SceneBounds, the axis-aligned rectangle a scene occupies (the root group's bounds is the viewport), its bounding-box factory over a Polygon, and worldBorder, the origin-centered circle renderers clip infinite lines against.

Types

Link copied to clipboard
data class SceneBounds(val minX: Double, val minY: Double, val width: Double, val height: Double)

An axis-aligned rectangle in CGA model space — the region a scene or sub-tree occupies. A scene root carries one as its viewport: renderers paint into it and clip at it.

Functions

Link copied to clipboard

Returns the axis-aligned bounding box of polygon's vertices.

Link copied to clipboard
fun worldBorder(width: Double, height: Double): Circle

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

Link copied to clipboard

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