pymel.core.datatypes.Quaternion¶
digraph inheritance98e4d77901 { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "Array" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.util.arrays/pymel.util.arrays.Array.html#pymel.util.arrays.Array",style="setlinewidth(0.5)",tooltip="A generic n-dimensional array class using nested lists for storage.",height=0.25,shape=box,fontsize=8]; "MMatrix" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; "MQuaternion" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; "Matrix" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.datatypes.Matrix.html#pymel.core.datatypes.Matrix",style="setlinewidth(0.5)",tooltip="A 4x4 transformation matrix based on api Matrix",height=0.25,shape=box,fontsize=8]; "MatrixN" -> "Matrix" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MMatrix" -> "Matrix" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MatrixN" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.util.arrays/pymel.util.arrays.MatrixN.html#pymel.util.arrays.MatrixN",style="setlinewidth(0.5)",tooltip="A generic size MatrixN class, basically a 2 dimensional Array.",height=0.25,shape=box,fontsize=8]; "Array" -> "MatrixN" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Quaternion" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.datatypes.Quaternion",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "Matrix" -> "Quaternion" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MQuaternion" -> "Quaternion" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
- class Quaternion(*args, **kwargs)¶
- __contains__(value)¶
True if at least one of the vector components is equal to the argument
- __setitem__(i, a)¶
Set component i value on self
- apicls¶
alias of MQuaternion
- assign(value)¶
Wrap the Quaternion api assign method
- cnames = ('x', 'y', 'z', 'w')¶
- conjugateIt()¶
Performs an in place conjugation of this quaternion. The result is a quaternion whose x, y, and z values have been negated.
Return type: Quaternion Derived from api method maya.OpenMaya.MQuaternion.conjugateIt
- exp()¶
Exponentiates a quaternion that has a scalar part of zero. The precondition for using this method is that w is zero.
Return type: Quaternion Derived from api method maya.OpenMaya.MQuaternion.exp
- get()¶
Wrap the Quaternion api get method
- identity = Quaternion([0.0, 0.0, 0.0, 1.0])¶
- invertIt()¶
Performs an in place inversion of this quaternion.
Return type: Quaternion Derived from api method maya.OpenMaya.MQuaternion.invertIt
- log()¶
Returns the natural log of a quaternion. The precondition for using this method is that the quaternion must be normalized.
Return type: Quaternion Derived from api method maya.OpenMaya.MQuaternion.log
- ndim = 1¶
- negateIt()¶
Performs an in place negation of the quaternion. The result is a quaternion whose x, y, z, and w values have been negated.
Return type: Quaternion Derived from api method maya.OpenMaya.MQuaternion.negateIt
- normalizeIt()¶
Performs an in place normalization of this quaternion. The result is a quaternion of unit length.
Return type: Quaternion Derived from api method maya.OpenMaya.MQuaternion.normalizeIt
- rotate¶
The rotation expressed in this Quaternion, in transform space
- scale¶
The scale expressed in this Quaternion, which is always (1.0, 1.0, 1.0)
- scaleIt(scale)¶
Performs an in place scaling of the quaternion. The result is a quaternion whose x, y, z, and w values have been scaled by the specified amount.
Parameters: - scale : float
the amount by which the quaternion should be scaled
Return type: Derived from api method maya.OpenMaya.MQuaternion.scaleIt
- setToXAxis(theta)¶
Sets this quaternion to be the rotation about the X axis of theta (in angular units). If the length of the axis is too small the quaternion returned will be the identity quaternion.
Parameters: - theta : float
the angle of rotation about the X axis in radians
Return type: Derived from api method maya.OpenMaya.MQuaternion.setToXAxis
- setToYAxis(theta)¶
Sets this quaternion to be the rotation about the Y axis of theta (in angular units). If the length of the axis is too small the quaternion returned will be the identity quaternion.
Parameters: - theta : float
the angle of rotation about the Y axis in radians
Return type: Derived from api method maya.OpenMaya.MQuaternion.setToYAxis
- setToZAxis(theta)¶
Sets this quaternion to be the rotation about the Z axis of theta (in angular units). If the length of the axis is too small the quaternion returned will be the identity quaternion.
Parameters: - theta : float
the angle of rotation about the Z axis in radians
Return type: Derived from api method maya.OpenMaya.MQuaternion.setToZAxis
- shape = (4,)¶
- size = 4¶
- translate¶
The translation expressed in this MMQuaternion, which is always (0.0, 0.0, 0.0)
- w¶
- x¶
- y¶
- z¶