Module geo.bounding_box

Axis-aligned bounding-box computation for two-dimensional geometry.

The operations in this module compute Bounds2 directly in the input scalar domain. They perform no coordinate conversion, topology validation, or allocation.

Date

September 12, 2026

Functions

NameDescription
tryBounds(segment, result) Computes the closed axis-aligned bounds of a segment.
tryBounds(polyline, result) Computes the closed axis-aligned bounds of a polyline.
tryBounds(ring, result) Computes the closed axis-aligned bounds of a linear ring.
tryBounds(polygon, result) Computes the closed axis-aligned bounds of a polygon representation.