Fixed wrong implementation of Quat multiplication
Obeyed Clang format rulespull/289/head
parent
04548011e3
commit
041b97e5b2
|
@ -247,10 +247,10 @@ void Quat::operator-=(const Quat &q) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Quat::operator*=(const Quat &q) {
|
void Quat::operator*=(const Quat &q) {
|
||||||
x *= q.x;
|
set(w * q.x + x * q.w + y * q.z - z * q.y,
|
||||||
y *= q.y;
|
w * q.y + y * q.w + z * q.x - x * q.z,
|
||||||
z *= q.z;
|
w * q.z + z * q.w + x * q.y - y * q.x,
|
||||||
w *= q.w;
|
w * q.w - x * q.x - y * q.y - z * q.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Quat::operator*=(const real_t &s) {
|
void Quat::operator*=(const real_t &s) {
|
||||||
|
|
Loading…
Reference in New Issue