axmol/cocos/math/Quaternion.inl

19 lines
312 B
C++

#include "Quaternion.h"
NS_CC_MATH_BEGIN
inline const Quaternion Quaternion::operator*(const Quaternion& q) const
{
Quaternion result(*this);
result.multiply(q);
return result;
}
inline Quaternion& Quaternion::operator*=(const Quaternion& q)
{
multiply(q);
return *this;
}
NS_CC_MATH_END