diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-18 12:35:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 12:35:58 +0200 |
commit | 7aebb8f81c44f5f33c4387d32824a76e46266732 (patch) | |
tree | b09b30950ae57cb6d7a543678e65aeefbfd52b70 /core/math/quaternion.h | |
parent | 3fc39954ec3473cc022af615c5eb8b1ba271e008 (diff) | |
parent | 93b494d4ae136f43193a5a2da7a355938517767e (diff) |
Merge pull request #44156 from aaronfranke/quat-angle-to
Add Quaternion angle_to method
Diffstat (limited to 'core/math/quaternion.h')
-rw-r--r-- | core/math/quaternion.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/math/quaternion.h b/core/math/quaternion.h index 796214b79e..35324323b3 100644 --- a/core/math/quaternion.h +++ b/core/math/quaternion.h @@ -28,8 +28,8 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ -#ifndef QUAT_H -#define QUAT_H +#ifndef QUATERNION_H +#define QUATERNION_H #include "core/math/math_defs.h" #include "core/math/math_funcs.h" @@ -62,6 +62,7 @@ public: bool is_normalized() const; Quaternion inverse() const; _FORCE_INLINE_ real_t dot(const Quaternion &p_q) const; + real_t angle_to(const Quaternion &p_to) const; Vector3 get_euler_xyz() const; Vector3 get_euler_yxz() const; @@ -235,4 +236,4 @@ _FORCE_INLINE_ Quaternion operator*(const real_t &p_real, const Quaternion &p_qu return p_quaternion * p_real; } -#endif // QUAT_H +#endif // QUATERNION_H |