next up previous
Next: SLA_DJCAL - MJD to Gregorian for Output
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DH2E - Az,El to

SLA_DIMXV - Apply 3D Reverse Rotation   

ACTION:
Multiply a 3-vector by the inverse of a rotation matrix (double precision).

CALL:
CALL sla_DIMXV (DM, VA, VB)

GIVEN:

DM D(3,3) rotation matrix
VA D(3) vector to be rotated

RETURNED:

VB D(3) result vector

NOTES:
1.
This routine performs the operation:
b = M$^{T}\cdot$a
where a and b are the 3-vectors VA and VB respectively, and M is the $3\times3$ matrix DM.
2.
The main function of this routine is apply an inverse rotation; under these circumstances, ${\bf \rm M}$ is orthogonal, with its inverse the same as its transpose.
3.
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 on the VAX and many other systems even if this rule is violated, something that is not, however, recommended.


next up previous
Next: SLA_DJCAL - MJD to Gregorian for Output
Up: SUBPROGRAM SPECIFICATIONS
Previous: SLA_DH2E - Az,El to

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