Go to the source code of this file.
◆ rotationvectorinv()
subroutine rotationvectorinv |
( |
real*8, dimension(3,3), intent(out) |
c, |
|
|
real*8, dimension(3), intent(in) |
v |
|
) |
| |
25 real*8 c(3,3),v(3),theta,ds,dc
31 theta=dsqrt(v(1)*v(1)+v(2)*v(2)+v(3)*v(3))
33 if (theta.eq.0.d0)
then 52 c(1,1)=dc+(1.d0-dc)*v(1)*v(1)/(theta*theta)
53 c(1,2)= (1.d0-dc)*v(1)*v(2)/(theta*theta)-ds*v(3)/theta
54 c(1,3)= (1.d0-dc)*v(1)*v(3)/(theta*theta)+ds*v(2)/theta
55 c(2,1)= (1.d0-dc)*v(2)*v(1)/(theta*theta)+ds*v(3)/theta
56 c(2,2)=dc+(1.d0-dc)*v(2)*v(2)/(theta*theta)
57 c(2,3)= (1.d0-dc)*v(2)*v(3)/(theta*theta)-ds*v(1)/theta
58 c(3,1)= (1.d0-dc)*v(3)*v(1)/(theta*theta)-ds*v(2)/theta
59 c(3,2)= (1.d0-dc)*v(3)*v(2)/(theta*theta)+ds*v(1)/theta
60 c(3,3)=dc+(1.d0-dc)*v(3)*v(3)/(theta*theta)