Function robust_geo::magnitude_cmp_2d[][src]

pub fn magnitude_cmp_2d(a: Vector2<f64>, b: Vector2<f64>) -> f64

Compares the magnitude of a and b and returns a positive number if a's magnitude is greater, a negative number if b's magnitude is greater, and 0 if their magnitudes equal.