Lines Matching refs:theta
65 f32 theta, scale;
73 theta = ::std::sqrtf( q->x * q->x + q->y * q->y + q->z * q->z );
76 if ( theta > NN_QUAT_EPSILON )
78 scale = (f32)::std::sinf(theta) / theta;
84 pOut->w = (f32)::std::cosf(theta);
107 f32 theta, scale;
115 theta = ::std::atan2f( scale, q->w );
119 scale = theta / scale;
196 f32 theta, sin_th, cos_th, tp, tq;
213 theta = ::std::acosf(cos_th);
214 sin_th = ::std::sinf(theta);
215 tp = ::std::sinf((1.0F - t) * theta) / sin_th;
216 tq *= ::std::sinf( t * theta ) / sin_th;
220 // cos(theta) is close to 1.0F -> linear