diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-03 12:07:33 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-03 12:07:33 +0100 |
commit | d0b7b698b00bd7ac93858d838b3f6a24d3f8fc30 (patch) | |
tree | c46edb2a889660836e987cb87e3cd393c1908914 /doc | |
parent | 3cde6c0432d33ccc5f2c2cd9e2419a7f4c03502a (diff) | |
parent | 9e952c83869cd2c1d928beeb6493e635e2b690ff (diff) |
Merge pull request #68191 from aaronfranke/quat-euler-order
Allow getting Quaternion rotation in different Euler orders
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Quaternion.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/Quaternion.xml b/doc/classes/Quaternion.xml index 08a9231751..ac2eda9f28 100644 --- a/doc/classes/Quaternion.xml +++ b/doc/classes/Quaternion.xml @@ -99,8 +99,9 @@ </method> <method name="get_euler" qualifiers="const"> <return type="Vector3" /> + <param index="0" name="order" type="int" default="2" /> <description> - Returns Euler angles (in the YXZ convention: when decomposing, first Z, then X, and Y last) corresponding to the rotation represented by the unit quaternion. Returned vector contains the rotation angles in the format (X angle, Y angle, Z angle). + Returns the quaternion's rotation in the form of Euler angles. The Euler order depends on the [param order] parameter, for example using the YXZ convention: since this method decomposes, first Z, then X, and Y last. See the [enum EulerOrder] enum for possible values. The returned vector contains the rotation angles in the format (X angle, Y angle, Z angle). </description> </method> <method name="inverse" qualifiers="const"> |