calculate_intersection

Function calculate_intersection 

Source
pub fn calculate_intersection(
    pole_0: &Vector3d,
    pole_1: &Vector3d,
    min_sq_value: f64,
) -> Option<Vector3d>
Expand description

Calculate an intersection point between the poles of two Great Circles. See: http://www.movable-type.co.uk/scripts/latlong-vectors.html#intersection

  • pole_0, pole_1 the poles.
  • min_sq_value the minimum square of a vector length to normalize.

return an intersection point or None if the poles represent coincident Great Circles.