25 real(8),
intent(in) :: v(3),th
26 real(8),
intent(out) :: rot(3,3)
28 real(8) x,y,z,x2,y2,z2
29 real(8) xy,xz,yz,cs,sn,t1
30 x=v(1); y=v(2); z=v(3)
31 t1=sqrt(x**2+y**2+z**2)
41 x=x*t1; y=y*t1; z=z*t1
42 x2=x**2; y2=y**2; z2=z**2
43 xy=x*y; xz=x*z; yz=y*z
44 cs=cos(th); sn=sin(th)
pure subroutine axangrot(v, th, rot)