MATH: Silence a noisy warning when building with GCC 9 in C++11 mode
This commit is contained in:
parent
2e53058086
commit
b51b484b49
2 changed files with 12 additions and 3 deletions
|
@ -238,6 +238,15 @@ void Quaternion::getEuler(Angle *first, Angle *second, Angle *third, EulerOrder
|
|||
*third = t;
|
||||
}
|
||||
|
||||
Quaternion& Quaternion::operator=(const Quaternion& quat) {
|
||||
x() = quat.x();
|
||||
y() = quat.y();
|
||||
z() = quat.z();
|
||||
w() = quat.w();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Quaternion Quaternion::operator*(const Quaternion &o) const {
|
||||
return Quaternion(
|
||||
w() * o.x() + x() * o.w() + y() * o.z() - z() * o.y(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue