RotationOrder (struct)¶
The Rotationorder
type represents the order in which rotations should be accumulated for a Euler rotation. Rotationorder
can be constructed from order indices or strings.
注釈
Before version 2.4.0, rotation order “XYZ” was actually applying order “ZYX”. This has been fixed, but and to minimize behavior changes, order indices still map to the same behavior (eg: order=4 was ZYX and is now XYZ).
参考
/*
** Example: RotationOrder
*/
RotationOrder ro1(0);
RotationOrder ro2('xyz');
Members¶
Integer | order |
Methods¶
RotationOrder ( in Integer order ) | |
RotationOrder ( in RotationOrder other ) | |
RotationOrder ( in String order ) | |
RotationOrder () | |
RotationOrder | clone ? () |
UInt32 | hash ? () |
Boolean | isReversed ? () |
Boolean | isXYZ ? () |
Boolean | isXZY ? () |
Boolean | isYXZ ? () |
Boolean | isYZX ? () |
Boolean | isZXY ? () |
Boolean | isZYX ? () |
setXYZ ! () | |
setXZY ! () | |
setYXZ ! () | |
setYZX ! () | |
setZXY ! () | |
setZYX ! () |
Methods in detail¶
RotationOrder ( in Integer order )
Constructor from the order index (0 to 5)
RotationOrder ( in RotationOrder other )
copy constructor
RotationOrder ( in String order )
Constructor from order string, for ex: ‘xyz’
RotationOrder RotationOrder.clone? ()
clone method
UInt32 RotationOrder.hash? ()
Hash for this value
Boolean RotationOrder.isReversed? ()
Returns true if this rotation order is one of the reversed ones (XZY, ZYX or YXZ)
Boolean RotationOrder.isXYZ? ()
Returns true if this rotationorder is ZYX
Boolean RotationOrder.isXZY? ()
Returns true if this rotationorder is YZX
Boolean RotationOrder.isYXZ? ()
Returns true if this rotationorder is ZXY
Boolean RotationOrder.isYZX? ()
Returns true if this rotationorder is XZY
Boolean RotationOrder.isZXY? ()
Returns true if this rotationorder is YXZ
Boolean RotationOrder.isZYX? ()
It would be most excellent to be able to override String casts. Returns true if this rotationorder is XYZ
RotationOrder.setXYZ! ()
Sets this rotation order to be ZYX
RotationOrder.setXZY! ()
Sets this rotation order to be YZX
RotationOrder.setYXZ! ()
Sets this rotation order to be ZXY
RotationOrder.setYZX! ()
Sets this rotation order to be XZY
RotationOrder.setZXY! ()
Sets this rotation order to be YXZ
RotationOrder.setZYX! ()
Sets this rotation order to be XYZ