From 8556fdd4bc1560f03f70df08282b12464a4cdf04 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sat, 1 Oct 2022 21:53:12 -0500 Subject: Move EulerOrder enum to math_defs.h and global scope --- doc/classes/@GlobalScope.xml | 18 ++++++++++++++++++ doc/classes/Basis.xml | 20 +------------------- 2 files changed, 19 insertions(+), 19 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index e30034495c..ad12c8c660 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -1465,6 +1465,24 @@ A bit mask for [code]INLINE_ALIGNMENT_TO_*[/code] alignment constants. + + Specifies that Euler angles should be in XYZ order. When composing, the order is X, Y, Z. When decomposing, the order is reversed, first Z, then Y, and X last. + + + Specifies that Euler angles should be in XZY order. When composing, the order is X, Z, Y. When decomposing, the order is reversed, first Y, then Z, and X last. + + + Specifies that Euler angles should be in YXZ order. When composing, the order is Y, X, Z. When decomposing, the order is reversed, first Z, then X, and Y last. + + + Specifies that Euler angles should be in YZX order. When composing, the order is Y, Z, X. When decomposing, the order is reversed, first X, then Z, and Y last. + + + Specifies that Euler angles should be in ZXY order. When composing, the order is Z, X, Y. When decomposing, the order is reversed, first Y, then X, and Z last. + + + Specifies that Euler angles should be in ZYX order. When composing, the order is Z, Y, X. When decomposing, the order is reversed, first X, then Y, and Z last. + Enum value which doesn't correspond to any key. This is used to initialize [enum Key] properties with a generic state. diff --git a/doc/classes/Basis.xml b/doc/classes/Basis.xml index 652d6d2407..acc2fd34dd 100644 --- a/doc/classes/Basis.xml +++ b/doc/classes/Basis.xml @@ -70,7 +70,7 @@ - Constructs a pure rotation Basis matrix from Euler angles in the specified Euler rotation order. By default, use YXZ order (most common). + Constructs a pure rotation Basis matrix from Euler angles in the specified Euler rotation order. By default, use YXZ order (most common). See the [enum EulerOrder] enum for possible values. @@ -197,24 +197,6 @@ - - Euler angle composing/decomposing order where X component is first, then Y, then Z. - - - Euler angle composing/decomposing order where X component is first, then Z, then Y. - - - Euler angle composing/decomposing order where Y component is first, then X, then Z. - - - Euler angle composing/decomposing order where Y component is first, then Z, then X. - - - Euler angle composing/decomposing order where Z component is first, then X, then Y. - - - Euler angle composing/decomposing order where Z component is first, then Y, then X. - The identity basis, with no rotation or scaling applied. This is identical to calling [code]Basis()[/code] without any parameters. This constant can be used to make your code clearer, and for consistency with C#. -- cgit v1.2.3