SceneBounds

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.

Components are raw Doubles in model units, and equality is the generated structural one — raw comparison of all four components, with no SCALE rounding.

Throws

when width or height is not strictly positive — the raw value is compared, with no SCALE rounding.

Constructors

Link copied to clipboard
constructor(minX: Double, minY: Double, width: Double, height: Double)

Builds the rectangle from its minimum corner and extents.

Properties

Link copied to clipboard

The vertical extent; strictly positive.

Link copied to clipboard

The left edge — the smallest x the region covers.

Link copied to clipboard

The bottom edge — the smallest y the region covers (model space is Y-up).

Link copied to clipboard

The horizontal extent; strictly positive.

Functions

Link copied to clipboard

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