Function marlu::pos::pal::palDcc2s

source · []
pub unsafe fn palDcc2s(v: *mut f64, a: &mut f64, b: &mut f64)
Expand description

Cartesian to spherical coordinates

Arguments: v = double[3] (Given) x, y, z vector. a = double* (Returned) Spherical coordinate (radians) b = double* (Returned) Spherical coordinate (radians) Description: The spherical coordinates are longitude (+ve anticlockwise looking from the +ve latitude pole) and latitude. The Cartesian coordinates are right handed, with the x axis at zero longitude and latitude, and the z axis at the +ve latitude pole. Notes:

  • Uses eraC2s(). See SOFA/ERFA documentation for details.

Original: https://github.com/Starlink/pal/blob/7af65f05fcd33fd7362c586eae7e98972cb03f29/palOne2One.c#L327

Safety

a and b will be modified.