Index Page
cspice_vhat
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_VHAT calculates the unit vector along a double precision
   3-vector.

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

I/O

   
   Given:
   
     vin   a double precision 3-vector
   
   the call:
   
      cspice_vhat, vin, vout
   
   returns
   
      vout   a double precision unit 3-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 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 3-dimensional vector




Wed Apr  5 17:58:04 2017