Returns a new MQuaternion which will rotate vector a into vector b, about their mutually perpendicular axis. If factor is less than 1 then it will rotate only part of the way into b. If factor is greater than 1 then it will overshoot b.
Exact equality comparison. Returns True if each component of the left operand is exactly equal to the corresponding component of the right operand.
!=
Exact inequality comparison. Returns True if any component of the left operand is not exactly equal to the corresponding component of the right operand.
All other comparison operators will raise a TypeError exception.
Constructor & Destructor Documentation
OpenMaya.MQuaternion.__init__
(
)
Initialize self. See help(type(self)) for accurate signature.
Member Function Documentation
OpenMaya.MQuaternion.__add__
(
)
Return self+value.
OpenMaya.MQuaternion.__delitem__
(
)
Delete self[key].
OpenMaya.MQuaternion.__eq__
(
)
Return self==value.
OpenMaya.MQuaternion.__ge__
(
)
Return self>=value.
OpenMaya.MQuaternion.__getitem__
(
)
Return self[key].
OpenMaya.MQuaternion.__gt__
(
)
Return self>value.
OpenMaya.MQuaternion.__imul__
(
)
Return self*=value.
OpenMaya.MQuaternion.__le__
(
)
Return self<=value.
OpenMaya.MQuaternion.__len__
(
)
Return len(self).
OpenMaya.MQuaternion.__lt__
(
)
Return self<value.
OpenMaya.MQuaternion.__mul__
(
)
Return self*value.
OpenMaya.MQuaternion.__ne__
(
)
Return self!=value.
OpenMaya.MQuaternion.__neg__
(
)
-self
OpenMaya.MQuaternion.__new__
(
)
static
Create and return a new object. See help(type) for accurate signature.
OpenMaya.MQuaternion.__radd__
(
)
Return value+self.
OpenMaya.MQuaternion.__repr__
(
)
Return repr(self).
OpenMaya.MQuaternion.__rmul__
(
)
Return value*self.
OpenMaya.MQuaternion.__rsub__
(
)
Return value-self.
OpenMaya.MQuaternion.__setitem__
(
)
Set self[key] to value.
OpenMaya.MQuaternion.__str__
(
)
Return str(self).
OpenMaya.MQuaternion.__sub__
(
)
Return self-value.
OpenMaya.MQuaternion.asAxisAngle
(
)
Returns the rotation as a tuple containing an axis vector and an angle in radians about that axis.
Spherical interpolation of unit quaternions. Returns a quaternion along the shortest path (in quaternion space) between p and q, at interpolation value t. Thus a value of 0.0 will return p while a value of 1.0 will return q. spins gives the number of complete rotations about the axis which must occur when going from p to q.
OpenMaya.MQuaternion.squad
(
)
static
Returns the quaternion at a given interpolation value along a cubic curve segment in quaternion space.
Interpolation along a cubic curve segment in quaternion space. Returns a quaternion along the cubic curve segment which interpolates p and q, at interpolation value t. Thus a value of 0.0 will return p while a value of 1.0 will return q. The curve is C1 continuous with a and b as intermediate points. spins gives the number of complete rotations about the axis which must occur when going from p to q.
OpenMaya.MQuaternion.squadPt
(
)
static
Returns a new quaternion representing an intermediate point which when used with squad() will produce a C1 continuous spline.