Skip to main content

Module coord

Module coord 

Source
Expand description

Ternary composition validation and geometric projection.

Structs§

CartesianSegment
A directed segment in the logical ternary Cartesian plane.
ClippedSegment
A clipped segment together with its parameter range on the source segment.
PixelBounds
Floating-point bounds actually occupied inside an allocated pixel rectangle.
PixelPoint
A floating-point pixel-space point used before backend rounding.
PixelRect
A backend-independent allocated pixel rectangle.
TernaryCartesian
A point in the logical Cartesian plane used for ternary projection.
TernaryGeometry
An equilateral ternary triangle and its component-to-vertex assignment.
TernaryPoint
A ternary composition in semantic A/B/C order.
TernaryViewport
An axis-aligned logical rectangle in the projected ternary plane.
Tolerance
Absolute and relative tolerances used by validation and triangle boundaries.
VertexOrder
The semantic component assigned to each geometric triangle slot.
ViewportTransform
A reversible mapping between a logical viewport and floating pixel space.
VisibleTriangleEdge
A visible edge fragment retaining its identity and source parameter range.

Enums§

Component
One of the three semantic components of a ternary composition.
Error
Errors reported by composition validation and geometric projection.
Normalization
The explicit sum policy applied before a composition is used geometrically.
TriangleEdge
A directed geometric edge of the canonical triangle.
TriangleOrientation
Whether the apex of the equilateral triangle points up or down.
TrianglePointLocation
The location of a finite Cartesian point relative to the full triangle.
ViewportAlignment
Placement of aspect-fitted bounds when unused pixel space remains.
ViewportFit
How a logical viewport uses an allocated pixel rectangle.
ViewportPointLocation
A point’s location relative only to a logical viewport rectangle.

Constants§

EQUILATERAL_TRIANGLE_HEIGHT
The height of a unit-side equilateral triangle in logical Cartesian space.

Functions§

clip_segment
Clip a directed segment against a logical viewport using Liang-Barsky.
clip_segment_with_parameters
Clip a segment and retain its original directed parameter interval.