pymel.core.datatypes.Quaternion

Inheritance diagram of Quaternion

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

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:

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

shape = (4,)
size = 4
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