axmol/cocos/math/Quaternion.inl

19 lines
312 B
Plaintext
Raw Normal View History

2014-04-02 10:33:07 +08:00
#include "Quaternion.h"
2014-04-02 12:09:51 +08:00
NS_CC_MATH_BEGIN
2014-04-02 10:33:07 +08:00
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;
}
2014-04-02 12:09:51 +08:00
NS_CC_MATH_END