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__
(
)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Member Function Documentation
OpenMaya.MQuaternion.__add__
(
)
x.__add__(y) <==> x+y
OpenMaya.MQuaternion.__delitem__
(
)
x.__delitem__(y) <==> del x[y]
OpenMaya.MQuaternion.__eq__
(
)
x.__eq__(y) <==> x==y
OpenMaya.MQuaternion.__ge__
(
)
x.__ge__(y) <==> x>=y
OpenMaya.MQuaternion.__getitem__
(
)
x.__getitem__(y) <==> x[y]
OpenMaya.MQuaternion.__gt__
(
)
x.__gt__(y) <==> x>y
OpenMaya.MQuaternion.__imul__
(
)
x.__imul__(y) <==> x*y
OpenMaya.MQuaternion.__le__
(
)
x.__le__(y) <==> x<=y
OpenMaya.MQuaternion.__len__
(
)
x.__len__() <==> len(x)
OpenMaya.MQuaternion.__lt__
(
)
x.__lt__(y) <==> x<y
OpenMaya.MQuaternion.__mul__
(
)
x.__mul__(y) <==> x*y
OpenMaya.MQuaternion.__ne__
(
)
x.__ne__(y) <==> x!=y
OpenMaya.MQuaternion.__neg__
(
)
x.__neg__() <==> -x
OpenMaya.MQuaternion.__radd__
(
)
x.__radd__(y) <==> y+x
OpenMaya.MQuaternion.__repr__
(
)
x.__repr__() <==> repr(x)
OpenMaya.MQuaternion.__rmul__
(
)
x.__rmul__(y) <==> y*x
OpenMaya.MQuaternion.__rsub__
(
)
x.__rsub__(y) <==> y-x
OpenMaya.MQuaternion.__setitem__
(
)
x.__setitem__(i, y) <==> x[i]=y
OpenMaya.MQuaternion.__str__
(
)
x.__str__() <==> str(x)
OpenMaya.MQuaternion.__sub__
(
)
x.__sub__(y) <==> x-y
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.