pymel.core.datatypes.Quaternion

digraph inheritance98e4d77901 {
rankdir=TB;
ranksep=0.15;
nodesep=0.15;
size="8.0, 12.0";
  "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)"];
  "MQuaternion" [shape=box,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=8,style="setlinewidth(0.5)",height=0.25];
  "MMatrix" [shape=box,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=8,style="setlinewidth(0.5)",height=0.25];
  "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)",height=0.25,shape=box,fontsize=8];
  "Array" -> "MatrixN" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "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)",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)"];
  "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)",height=0.25,shape=box,fontsize=8];
}

class Quaternion(*args, **kwargs)
apicls
alias of MQuaternion
asEulerRotation()

Converts a quaternion to an euler rotation.

Return type:EulerRotation

Derived from api method maya.OpenMaya.MQuaternion.asEulerRotation

assign(value)
Wrap the Quaternion api assign method
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
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

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:

Quaternion

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:

Quaternion

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:

Quaternion

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:

Quaternion

Derived from api method maya.OpenMaya.MQuaternion.setToZAxis

translate
The translation expressed in this MMQuaternion, which is always (0.0, 0.0, 0.0)
w
x
y
z

Previous topic

pymel.core.datatypes.Point

Next topic

pymel.core.datatypes.Space

Core

Core Modules

Other Modules

This Page