CSPICE_SPHREC converts spherical coordinates to rectangular
(Cartesian) coordinates.
For important details concerning this module's function, please refer to
the CSPICE routine sphrec_c.
Given:
r a double precision scalar or Nvector describing
the distance of the point from the origin.
colat a double precision scalar or Nvector describing
the angle between the point and the positive zaxis
measured in radians.
lon a double precision scalar or Nvector describing
the angle of the projection of the point to the XY
plane from the positive Xaxis measured in radians.
The positive Yaxis is at longitude PI/2 radians.
the call:
cspice_sphrec, r, colat, lon, rectan
returns:
rectan a double precision 3vector or 3xN array containing
the rectangular coordinates of the position or set
of positions.
'rectan' returns with the same measure of vectorization (N)
as 'r', 'colat', and 'lon'.
None.
None.
ICY.REQ
Icy Version 1.0.2, 05FEB2008, EDW (JPL)
Edited I/O section, replaced comment
"returns with the same order"
with
"returns with the same measure of vectorization"
Icy Version 1.0.1, 09DEC2005, EDW (JPL)
Added Examples section.
Icy Version 1.0.0, 16JUN2003, EDW (JPL)
spherical to rectangular coordinates
