CSPICE_SPHREC converts spherical coordinates to rectangular
For important details concerning this module's function, please refer to
the CSPICE routine sphrec_c.
r a double precision scalar or N-vector describing
the distance of the point from the origin.
colat a double precision scalar or N-vector describing
the angle between the point and the positive z-axis
measured in radians.
lon a double precision scalar or N-vector describing
the angle of the projection of the point to the XY
plane from the positive X-axis measured in radians.
The positive Y-axis is at longitude PI/2 radians.
cspice_sphrec, r, colat, lon, rectan
rectan a double precision 3-vector or 3xN array containing
the rectangular coordinates of the position or set
'rectan' returns with the same measure of vectorization (N)
as 'r', 'colat', and 'lon'.
-Icy Version 1.0.2, 05-FEB-2008, EDW (JPL)
Edited I/O section, replaced comment
"returns with the same order"
"returns with the same measure of vectorization"
-Icy Version 1.0.1, 09-DEC-2005, EDW (JPL)
Added Examples section.
-Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)
spherical to rectangular coordinates