palDcs2c

Spherical coordinates to direction cosines

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

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

Arguments

a = double (Given)
Spherical coordinate in radians (ra, long etc).
b = double (Given)
Spherical coordinate in radians (dec, lat etc).
v = double [3] (Returned)
x, y, z vector

Notes: