Lines Matching refs:q
63 QUATExp(QUAT* pOut, const QUAT* __restrict q)
68 NN_NULL_ASSERT( q );
71 NN_ASSERT( q->w == 0.0F );
73 theta = ::std::sqrtf( q->x * q->x + q->y * q->y + q->z * q->z );
81 pOut->x = scale * q->x;
82 pOut->y = scale * q->y;
83 pOut->z = scale * q->z;
105 QUATLogN(QUAT* pOut, const QUAT* __restrict q)
110 NN_NULL_ASSERT( q );
112 scale = q->x * q->x + q->y * q->y + q->z * q->z;
115 theta = ::std::atan2f( scale, q->w );
122 pOut->x = scale * q->x;
123 pOut->y = scale * q->y;
124 pOut->z = scale * q->z;
131 QUATMakeClosest(QUAT* pOut, const QUAT *q, const QUAT *qto)
136 NN_NULL_ASSERT(q );
139 dot = q->x * qto->x + q->y * qto->y + q->z * qto->z + q->w * qto->w;
143 pOut->x = -q->x;
144 pOut->y = -q->y;
145 pOut->z = -q->z;
146 pOut->w = -q->w;
150 *pOut = *q;
180 QUATScale(QUAT* pOut, const QUAT* q, f32 scale)
183 NN_NULL_ASSERT( q );
185 pOut->x = q->x * scale;
186 pOut->y = q->y * scale;
187 pOut->z = q->z * scale;
188 pOut->w = q->w * scale;
234 QUATSquad(QUAT* pOut, const QUAT* p, const QUAT* a, const QUAT* b, const QUAT* q, f32 t)
243 NN_NULL_ASSERT( q );
246 QUATSlerp(&pq, p, q, t);