Index Page
cspice_unorm
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_UNORM returns a normalized copy of a double
   precision 3-vector and the corresponding vector magnitude.

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

I/O


   Given:

      vec1   an arbitrary double precision 3-vector.

   the call:

      cspice_unorm, vec1, vecout, vec1_mag

   returns:

      vecout     the double precision 3-vector normalized version of vec1.

      vec1_mag   the double precision scalar magnitude of 'vec1'. As vecout is
                 a normalized vector, its magnitudes equal 1.

Examples


   IDL native code to perform the same operation:

      vecout   = vec1/norm(vec1)
      vec1_mag = norm( vec1 )

   The native IDL functions accept arbitrary sized vectors.

Particulars


   None.

Required Reading


   ICY.REQ

Version


   -Icy Version 1.0.2, 13-JUN-2011, EDW (JPL)

      Edits to comply with NAIF standard for Icy headers.

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

      Added Examples section.

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

Index_Entries


   3-dimensional unit vector and norm




Wed Apr  5 17:58:04 2017