next up previous
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
Next: SLA_VXV - Vector Product
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_VDV - Scalar Product

SLALIB --- Positional Astronomy Library
Starlink User Note 67
P. T. Wallace
12 October 1999
E-mail:ptw@star.rl.ac.uk