next up previous
Next: SLA_DVXV - Vector Product
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DVDV - Scalar Product

SLA_DVN - Normalize Vector   

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

GIVEN:

V D(3) vector

RETURNED:

UV D(3) unit vector in direction of V
VM D modulus of V

NOTE:
If the modulus of V is zero, UV is set to zero as well.


next up previous
Next: SLA_DVXV - Vector Product
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DVDV - Scalar Product

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