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

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

Copyright © 2010 Science and Technology Facilities Council