diff options
author | Andrea Catania <info@andreacatania.com> | 2020-06-12 18:39:59 +0200 |
---|---|---|
committer | Andrea Catania <info@andreacatania.com> | 2020-06-12 20:03:27 +0200 |
commit | 233130098941c384240a0b7109890e0222f96735 (patch) | |
tree | 2213d29ba222666f79a70b2bf27326ee4d6c86a1 /core/math/basis.h | |
parent | 84abf5a979648081a9076ec6b342f5f9d33093d4 (diff) | |
download | redot-engine-233130098941c384240a0b7109890e0222f96735.tar.gz |
- Added more euler rotation orders support.
- Fixed floating point issue on the old one.
- Fixed the equation on the get_euler_yxz function.
- Added unit tests.
This work has been kindly sponsored by IMVU.
Diffstat (limited to 'core/math/basis.h')
-rw-r--r-- | core/math/basis.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/math/basis.h b/core/math/basis.h index d870a6b099..985fb0e44f 100644 --- a/core/math/basis.h +++ b/core/math/basis.h @@ -88,9 +88,22 @@ public: Vector3 get_euler_xyz() const; void set_euler_xyz(const Vector3 &p_euler); + + Vector3 get_euler_xzy() const; + void set_euler_xzy(const Vector3 &p_euler); + + Vector3 get_euler_yzx() const; + void set_euler_yzx(const Vector3 &p_euler); + Vector3 get_euler_yxz() const; void set_euler_yxz(const Vector3 &p_euler); + Vector3 get_euler_zxy() const; + void set_euler_zxy(const Vector3 &p_euler); + + Vector3 get_euler_zyx() const; + void set_euler_zyx(const Vector3 &p_euler); + Quat get_quat() const; void set_quat(const Quat &p_quat); |