diff options
| author | Juan Linietsky | 2018-06-25 10:58:04 -0300 |
|---|---|---|
| committer | GitHub | 2018-06-25 10:58:04 -0300 |
| commit | ad4666f8e0c4a110f0cc07e0555b0808916a4cf4 (patch) | |
| tree | 3e0dd0df094e0aab311b1ec4f17663f2fca82528 /core/math/matrix3.h | |
| parent | 682c2f249369e18724ffbe1c2c7ba617c05fb379 (diff) | |
| parent | 9d41161596167984efdb02639d0857da8979b01b (diff) | |
| download | godot-ad4666f8e0c4a110f0cc07e0555b0808916a4cf4.tar.gz godot-ad4666f8e0c4a110f0cc07e0555b0808916a4cf4.tar.zst godot-ad4666f8e0c4a110f0cc07e0555b0808916a4cf4.zip | |
Diffstat (limited to 'core/math/matrix3.h')
| -rw-r--r-- | core/math/matrix3.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/math/matrix3.h b/core/math/matrix3.h index 63d4f5d79..cd1b51baa 100644 --- a/core/math/matrix3.h +++ b/core/math/matrix3.h @@ -84,9 +84,11 @@ public: void rotate(const Quat &p_quat); Basis rotated(const Quat &p_quat) const; - Vector3 get_rotation() const; + Vector3 get_rotation_euler() const; void get_rotation_axis_angle(Vector3 &p_axis, real_t &p_angle) const; void get_rotation_axis_angle_local(Vector3 &p_axis, real_t &p_angle) const; + Quat get_rotation_quat() const; + Vector3 get_rotation() const { return get_rotation_euler(); }; Vector3 rotref_posscale_decomposition(Basis &rotref) const; |
