>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  UNIT

UNIT

UNIT

Name


      UNIT

Purpose


      Returns unit vector along given vector.

Category


Calling Sequence


      u = unit(v)

Inputs


      v = vector: [vx,vy,vz]. in

Keyword Parameters


Outputs


      u = unit vector along v: [ux,uy,uz]. out

Common Blocks


Notes


      Note: if length of vector is 0 then the 0 vector is returned.

Modification History


      R. Sterner. 24 Aug, 1986.
      R. Sterner, 14 Feb, 1991 --- converted to IDL V2.
      Johns Hopkins University Applied Physics Laboratory.
  Copyright (C) 1986, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us