18 static doublereal c_b2 = -1.;
19 static doublereal c_b3 = 1.;
23 int qmini(doublereal *init, doublereal *
final, doublereal frac, doublereal *qintrp) {
28 doublereal vmag, axis[3];
29 doublereal q[4], angle;
31 doublereal intang, instar[4];
280 vminus_c(&init[1], &instar[1]);
284 qxq_c(
final, instar, q);
289 angle = acos(brcktd_c(q[0], c_b2, c_b3)) * 2.;
294 intang = frac * angle / 2.;
295 qscale[0] = cos(intang);
302 unorm_c(&q[1], axis, &vmag);
307 vscl_c(d__1, axis, &qscale[1]);
312 qxq_c(qscale, init, qintrp);