Lines Matching refs:q2
24 QUATAdd(QUAT* pOut, const QUAT* q1, const QUAT* q2)
28 NN_NULL_ASSERT( q2 );
30 pOut->x = q1->x + q2->x;
31 pOut->y = q1->y + q2->y;
32 pOut->z = q1->z + q2->z;
33 pOut->w = q1->w + q2->w;
39 QUATDivide(QUAT* pOut, const QUAT* q1, const QUAT* q2)
45 NN_NULL_ASSERT( q2 );
47 QUATInverse(&qtmp, q2);
54 QUATDot(const QUAT* q1, const QUAT* q2)
57 NN_NULL_ASSERT( q2 );
59 return (q1->x * q2->x + q1->y * q2->y + q1->z * q2->z + q1->w * q2->w);
90 QUATLerp(QUAT* pOut, const QUAT* __restrict q1, const QUAT* __restrict q2, f32 t)
94 NN_NULL_ASSERT( q2 );
96 pOut->x = t * ( q2->x - q1->x ) + q1->x;
97 pOut->y = t * ( q2->y - q1->y ) + q1->y;
98 pOut->z = t * ( q2->z - q1->z ) + q1->z;
99 pOut->w = t * ( q2->w - q1->w ) + q1->w;
194 QUATSlerp(QUAT* pOut, const QUAT* __restrict q1, const QUAT* __restrict q2, f32 t)
200 NN_NULL_ASSERT( q2 );
202 cos_th = q1->x * q2->x + q1->y * q2->y + q1->z * q2->z + q1->w * q2->w;
225 pOut->x = tp * q1->x + tq * q2->x;
226 pOut->y = tp * q1->y + tq * q2->y;
227 pOut->z = tp * q1->z + tq * q2->z;
228 pOut->w = tp * q1->w + tq * q2->w;
254 QUATSub(QUAT *pOut, const QUAT *q1, const QUAT *q2)
258 NN_NULL_ASSERT( q2 );
260 pOut->x = q1->x - q2->x;
261 pOut->y = q1->y - q2->y;
262 pOut->z = q1->z - q2->z;
263 pOut->w = q1->w - q2->w;