Previous: matrf Up: ../plot79_m.html Next: matrs


MATROT

       SUBROUTINE  MATROT (T, A,B,C, D,E,F)
 C$    (Matrix Rotating Point to Point)
 C$    Return in T(4,4) a  matrix which takes a  point which is  a
 C$    unit distance along the vector (A,B,C) from the origin into
 C$    a point the same  distance from the  origin, but along  the
 C$    vector (D,E,F).  The matrix T corresponds to a rotation  by
 C$    some angle  about an  axis perpendicular  to both  vectors.
 C$    Thus,  if  (A,B,C)  and  (D,E,F)  are  unit  vectors,   the
 C$    transformation is
 C$
 C$    (A,B,C,1)T --> (D,E,F,1).
 C$
 C$    If either  of  the  vectors  is (0,0,0),  or  if  they  are
 C$    colinear, then a unit (or -unit) matrix is returned.
 C$    (24-DEC-82)