Module plane_frame

Source
Expand description

An in-plane coordinate frame: the boundary between 3D model space and a plane’s own 2D parameter space.

§Why this is a type rather than three loose vectors

Frame2 and Frame3 are inert storage: they hold axes but carry no behaviour, so every consumer re-derives the same two operations and its own validity rule. That produced four separate orthonormality checks in this workspace under three different tolerance policies, one of which compared a DIMENSIONLESS dot product against the LINEAR tolerance and so scaled a pure direction test with the model length unit.

A frame that validates on construction and owns both directions of the map makes that class of bug unrepresentable.

Structs§

PlaneFrame
An origin and a right-handed orthonormal pair of in-plane axes.

Enums§

FrameError
Why a basis could not form an in-plane frame.