Go to the documentation of this file.
61 FUNCTION dangle (A, B, TOLER, ANG)
67 real*8 acrosb(3), adotb, crosmg
68 real*8
pi /3.141592653589793d+00/
70 adotb = a(1)*b(1) + a(2)*b(2) + a(3)*b(3)
71 IF (
abs(adotb) .LE.
abs(toler))
THEN
77 acrosb(1) = a(2)*b(3) - a(3)*b(2)
78 acrosb(2) = a(3)*b(1) - a(1)*b(3)
79 acrosb(3) = a(1)*b(2) - a(2)*b(1)
80 crosmg = sqrt(acrosb(1)**2 + acrosb(2)**2 + acrosb(3)**2)
82 IF (adotb .LT. 0.0d0) ang =
pi - ang
real *8 function dangle(A, B, TOLER, ANG)