Lines Matching refs:rhs
45 * @param rhs source quaternion
48 rsQuaternionSet(rs_quaternion *q, const rs_quaternion *rhs) {
49 q->w = rhs->w;
50 q->x = rhs->x;
51 q->y = rhs->y;
52 q->z = rhs->z;
74 rsQuaternionAdd(rs_quaternion *q, const rs_quaternion *rhs) {
75 q->w *= rhs->w;
76 q->x *= rhs->x;
77 q->y *= rhs->y;
78 q->z *= rhs->z;
160 * @param rhs right hand side quaternion to multiply by
163 rsQuaternionMultiply(rs_quaternion *q, const rs_quaternion *rhs) {
167 q->w = qtmp.w*rhs->w - qtmp.x*rhs->x - qtmp.y*rhs->y - qtmp.z*rhs->z;
168 q->x = qtmp.w*rhs->x + qtmp.x*rhs->w + qtmp.y*rhs->z - qtmp.z*rhs->y;
169 q->y = qtmp.w*rhs->y + qtmp.y*rhs->w + qtmp.z*rhs->x - qtmp.x*rhs->z;
170 q->z = qtmp.w*rhs->z + qtmp.z*rhs->w + qtmp.x*rhs->y - qtmp.y*rhs->x;