Next: SLA_DPAV - Position-Angle Between Two Directions
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DMXM - Multiply Matrices
SLA_DMXV - Apply 3D Rotation
- ACTION:
- Multiply a 3-vector by a rotation matrix (double precision).
- CALL:
- CALL sla_DMXV (DM, VA, VB)
- GIVEN:
-
| DM |
D(3,3) |
rotation matrix |
| VA |
D(3) |
vector to be rotated |
- RETURNED:
-
- NOTES:
- This routine performs the operation:
b = M
a
where a and b are the 3-vectors VA and VB
respectively, and M is the
matrix DM.
- The main function of this routine is apply a
rotation; under these circumstances, M is a
proper real orthogonal matrix.
- To comply with the ANSI Fortran 77 standard, VA and VB must
not be the same array. The routine is, in fact, coded
so as to work properly with many Fortran compilers even
if this rule is violated, something that is not, however,
recommended.
Next: SLA_DPAV - Position-Angle Between Two Directions
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DMXM - Multiply Matrices
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