mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
25 lines
411 B
C++
25 lines
411 B
C++
/**
|
|
Quaternion.inl
|
|
|
|
*/
|
|
|
|
namespace RBX {
|
|
|
|
inline Quaternion& Quaternion::operator+= (const Quaternion& rkQuaternion) {
|
|
x += rkQuaternion.x;
|
|
y += rkQuaternion.y;
|
|
z += rkQuaternion.z;
|
|
w += rkQuaternion.w;
|
|
return *this;
|
|
}
|
|
|
|
inline Quaternion& Quaternion::operator*= (float fScalar) {
|
|
x *= fScalar;
|
|
y *= fScalar;
|
|
z *= fScalar;
|
|
w *= fScalar;
|
|
return *this;
|
|
}
|
|
|
|
} // namespace
|