mirror of https://github.com/axmolengine/axmol.git
19 lines
312 B
C++
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
|