Index Page
cspice_vhatg
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_VHATG calculates the unit vector along a double precision
   N-vector.

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

I/O

   
   Given:
   
     vin   a double precision N-vector
   
   the call:
   
      cspice_vhatg, vin, vout
   
   returns:
   
      vout   a double precision unit N-vector corresponding to the 
             direction of 'vin'
   
      The function calculates the quantity:
    
         vin/||vin||

Examples


   The IDL native code to perform this operation:
   
      vout = vin/ norm(vin)
   
   The IDL version also accepts arbitrary N-vectors.

Particulars


   None.

Required Reading


   ICY.REQ

Version


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

      Added Examples section.

   -Icy Version 1.0.1, 10-OCT-2005, EDW (JPL)

      Corrected notation |vin| to ||vin||

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

Index_Entries

 
   unitize a n-dimensional vector 
 



Wed Apr  5 17:58:04 2017