pub fn sphere_parameters(
sphere: &Sphere,
p: Point,
tol: Tolerances,
) -> OgeomResult<(f64, f64)>Expand description
The (longitude, latitude) of the point on a sphere nearest p.
ยงErrors
OgeomError::Construction if p is the
centre. At a pole the latitude is well defined but the longitude is
arbitrary; zero is returned rather than an error, since the position is
unambiguous and callers overwhelmingly want it.