149 dxi = yij * zkj - zij * ykj;
150 dyi = zij * xkj - xij * zkj;
151 dzi = xij * ykj - yij * xkj;
152 gxi = zkj * ykl - ykj * zkl;
153 gyi = xkj * zkl - zkj * xkl;
154 gzi = ykj * xkl - xkj * ykl;
157 bi = dxi * dxi + dyi * dyi + dzi * dzi;
158 bk = gxi * gxi + gyi * gyi + gzi * gzi;
159 ct = dxi * gxi + dyi * gyi + dzi * gzi;
161 bi = (
REAL)sqrt((
double)bi);
162 bk = (
REAL)sqrt((
double)bk);
168 if (ct > 1.0) ct = 1.0;
169 if (ct < (-1.0)) ct = -1.0;
172 s = xkj * (dzi * gyi - dyi * gzi)
173 + ykj * (dxi * gzi - dzi * gxi)
174 + zkj * (dyi * gxi - dxi * gyi);
176 if (s < 0.0) ap = -ap;
178 ap = (ap > 0.0) ?
PI-ap : -(
PI+ap);
REAL blPhi(REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk, REAL yk, REAL zk, REAL xl, REAL yl, REAL zl)
Type definitions for maths.