aboutsummaryrefslogtreecommitdiff
path: root/core/math/matrix3.h
diff options
context:
space:
mode:
authortagcup2018-05-26 23:14:05 -0400
committertagcup2018-05-27 14:15:47 -0400
commit9d41161596167984efdb02639d0857da8979b01b (patch)
treec97563d142deed97f9796dc2814781d09cd8d26e /core/math/matrix3.h
parent130fd6bcb88d7b297b13c3ed20a715b5ab9cce47 (diff)
downloadgodot-9d41161596167984efdb02639d0857da8979b01b.tar.gz
godot-9d41161596167984efdb02639d0857da8979b01b.tar.zst
godot-9d41161596167984efdb02639d0857da8979b01b.zip
Diffstat (limited to 'core/math/matrix3.h')
-rw-r--r--core/math/matrix3.h4
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;