Expand description
Ternary composition validation and geometric projection.
Structs§
- Cartesian
Segment - A directed segment in the logical ternary Cartesian plane.
- Clipped
Segment - A clipped segment together with its parameter range on the source segment.
- Pixel
Bounds - Floating-point bounds actually occupied inside an allocated pixel rectangle.
- Pixel
Point - A floating-point pixel-space point used before backend rounding.
- Pixel
Rect - A backend-independent allocated pixel rectangle.
- Ternary
Cartesian - A point in the logical Cartesian plane used for ternary projection.
- Ternary
Geometry - An equilateral ternary triangle and its component-to-vertex assignment.
- Ternary
Point - A ternary composition in semantic A/B/C order.
- Ternary
Viewport - An axis-aligned logical rectangle in the projected ternary plane.
- Tolerance
- Absolute and relative tolerances used by validation and triangle boundaries.
- Vertex
Order - The semantic component assigned to each geometric triangle slot.
- Viewport
Transform - A reversible mapping between a logical viewport and floating pixel space.
- Visible
Triangle Edge - 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.
- Triangle
Edge - A directed geometric edge of the canonical triangle.
- Triangle
Orientation - Whether the apex of the equilateral triangle points up or down.
- Triangle
Point Location - The location of a finite Cartesian point relative to the full triangle.
- Viewport
Alignment - Placement of aspect-fitted bounds when unused pixel space remains.
- Viewport
Fit - How a logical viewport uses an allocated pixel rectangle.
- Viewport
Point Location - 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.