Lines Matching refs:theta
162 f32 theta, scale;
170 theta = ::std::sqrtf( q->x * q->x + q->y * q->y + q->z * q->z );
173 if ( theta > NN_QUAT_EPSILON )
175 scale = (f32)::std::sinf(theta) / theta;
181 pOut->w = (f32)::std::cosf(theta);
199 f32 theta, scale;
207 theta = ::std::atan2f( scale, q->w );
211 scale = theta / scale;
262 f32 theta, sin_th, cos_th, tp, tq;
279 theta = ::std::acosf(cos_th);
280 sin_th = ::std::sinf(theta);
281 tp = ::std::sinf((1.0F - t) * theta) / sin_th;
282 tq *= ::std::sinf( t * theta ) / sin_th;
286 // cos(theta) is close to 1.0F -> linear