next up previous 269
Next: SLA_VXV - Vector Product
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_VDV - Scalar Product


SLA_VN - Normalize Vector

ACTION:
Normalize a 3-vector, also giving the modulus (single precision).
CALL:
CALL sla_VN (V, UV, VM)
GIVEN:

V R(3) vector
RETURNED:

UV R(3) unit vector in direction of V
VM R modulus of V
NOTE:
If the modulus of V is zero, UV is set to zero as well.


next up previous 269
Next: SLA_VXV - Vector Product
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_VDV - Scalar Product

SLALIB --- Positional Astronomy Library
Starlink User Note 67
P. T. Wallace
19 December 2005
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council