diff options
Diffstat (limited to 'core/math/quat.h')
-rw-r--r-- | core/math/quat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/math/quat.h b/core/math/quat.h index 3152b7d233..617bffd908 100644 --- a/core/math/quat.h +++ b/core/math/quat.h @@ -91,6 +91,10 @@ public: return v + ((uv * w) + u.cross(uv)) * ((real_t)2); } + _FORCE_INLINE_ Vector3 xform_inv(const Vector3 &v) const { + return inverse().xform(v); + } + _FORCE_INLINE_ void operator+=(const Quat &q); _FORCE_INLINE_ void operator-=(const Quat &q); _FORCE_INLINE_ void operator*=(const real_t &s); |