Skip to main content

ANGULAR

Constant ANGULAR 

Source
pub const ANGULAR: f64 = 1e-12;
Expand description

Two directions closer than this in angle are parallel. Dimensionless.

Deliberately tight: near the limit of what f64 can distinguish. It is the right threshold for comparing directions that were stored, such as two surface axes read back from a model. It is the wrong one for comparing directions computed through subtraction of nearby coordinates, where the input’s own rounding is already larger; such a comparison needs a bound derived from the magnitudes involved.