Lines Matching refs:w
13 q->w += rhs->w; in rsQuaternionAdd()
28 return q0->w*q1->w + q0->x*q1->x + q0->y*q1->y + q0->z*q1->z; in rsQuaternionDot()
36 float xw = q->x * q->w; in rsQuaternionGetMatrixUnit()
39 float yw = q->y * q->w; in rsQuaternionGetMatrixUnit()
41 float zw = q->z * q->w; in rsQuaternionGetMatrixUnit()
62 q->w = c; in rsQuaternionLoadRotateUnit()
69 rsQuaternionSet(rs_quaternion* q, float w, float x, float y, float z) { in rsQuaternionSet() argument
70 q->w = w; in rsQuaternionSet()
78 q->w = rhs->w; in rsQuaternionSet()
101 q->w *= recipLen; in rsQuaternionNormalize()
110 q->w *= scalar; in rsQuaternionMultiply()
121 q->w = qtmp.w*rhs->w - qtmp.x*rhs->x - qtmp.y*rhs->y - qtmp.z*rhs->z; in rsQuaternionMultiply()
122 q->x = qtmp.w*rhs->x + qtmp.x*rhs->w + qtmp.y*rhs->z - qtmp.z*rhs->y; in rsQuaternionMultiply()
123 q->y = qtmp.w*rhs->y + qtmp.y*rhs->w + qtmp.z*rhs->x - qtmp.x*rhs->z; in rsQuaternionMultiply()
124 q->z = qtmp.w*rhs->z + qtmp.z*rhs->w + qtmp.x*rhs->y - qtmp.y*rhs->x; in rsQuaternionMultiply()
161 rsQuaternionSet(&tempq1, tempq0.z, -tempq0.y, tempq0.x, -tempq0.w); in rsQuaternionSlerp()
166 rsQuaternionSet(q, tempq0.w*scale + tempq1.w*invScale, tempq0.x*scale + tempq1.x*invScale, in rsQuaternionSlerp()