Skip to main content

dot_diff_raw

Function dot_diff_raw 

Source
pub fn dot_diff_raw(a: &R3, o: &R3, u: &R3) -> (Int, Int)
Expand description

(a−o)·u as an unreduced fraction (numerator, positive denominator) — integer-only, no gcd normalization. For sign tests and cross-multiplied comparisons (e.g. the radial ring sort in robust/classify.rs) the unreduced form is exactly as good as the canonical one and much cheaper to produce.