Lines Matching refs:rhs
12 rsQuaternionAdd(rs_quaternion* q, const rs_quaternion* rhs) { in rsQuaternionAdd() argument
13 q->w += rhs->w; in rsQuaternionAdd()
14 q->x += rhs->x; in rsQuaternionAdd()
15 q->y += rhs->y; in rsQuaternionAdd()
16 q->z += rhs->z; in rsQuaternionAdd()
77 rsQuaternionSet(rs_quaternion* q, const rs_quaternion* rhs) { in rsQuaternionSet() argument
78 q->w = rhs->w; in rsQuaternionSet()
79 q->x = rhs->x; in rsQuaternionSet()
80 q->y = rhs->y; in rsQuaternionSet()
81 q->z = rhs->z; in rsQuaternionSet()
117 rsQuaternionMultiply(rs_quaternion* q, const rs_quaternion* rhs) { in rsQuaternionMultiply() argument
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()