Index Page
cspice_recsph
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_RECSPH converts rectangular (Cartesian) coordinates to
   spherical coordinates. All coordinates are expressed as 
   double precision values.

   For important details concerning this module's function, please refer to
   the CSPICE routine recsph_c.

I/O


   Given:

      rectan   a double precision 3-vector or 3xN array
               containing the rectangular coordinates of a 
               position or set of positions

   the call:
   
      cspice_recsph, rectan, r, colat, lon
   
   returns:
   
      r       a double precision scalar or N-vector describing 
              the distance of the position from origin.

      colat   a double precision scalar or N-vector describing 
              the angle of the position from the positive Z-axis 
              measured in radians.

      lon     a double precision scalar or N-vector describing 
              the longitude of the position measured in radians.

              'r', 'colat', and 'lon' return with the same measure of 
              vectorization (N) as 'rectan'.

Examples


   None.

Particulars


   None.

Required Reading


   ICY.REQ

Version


   -Icy Version 1.1.3, 29-SEP-2007, EDW (JPL)
      
      Replaced the comment fragment in the I/O section
      
         "return with the same order"
         
      with
      
         "return with the same measure of vectorization"

   -Icy Version 1.1.2, 09-DEC-2005, EDW (JPL)

      Added Examples section.

   -Icy Version 1.1.0, 12-SEP-2004, EDW (JPL)

       Added capability to process vector 'rectan' as
       input returning vectors 'r', 'colat',  and 'lon'
       on output.

   -Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)

Index_Entries

 
   rectangular to spherical coordinates 
 



Wed Apr  5 17:58:03 2017