palDcc2s

Cartesian to spherical coordinates

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.

Invocation

palDcc2s( double v[3], double a, double b );

Arguments

v = double [3] (Given)
x, y, z vector.
a = double (Returned)
Spherical coordinate (radians)
b = double (Returned)
Spherical coordinate (radians)

Notes: