Copy constructor. Returns a new matrix with the same value as src.
MFloatMatrix(values)
values - sequence of 16 Float values or four tuples of four Float values each.
Returns a new matrix whose elements are set to those given by values. Values are interpreted in row order, so the first four values make up the first row of the matrix, the second four values the second row of the matrix, and so on.
Sequence Support
An MFloatMatrix object is treated like a list of 16 float values, in row major order. Assignment is supported.
len() returns 16.
Deletion, concatenation, repetition and slicing are not supported.
Exact equality test. True if each of the 16 elements of the first matrix is exactly equal to the corresponding element in the second matrix. No tolerance is applied.
Exact inequality test. True if any of the 16 elements in the first matrix is not exactly equal to the corresponding element in the second matrix. No tolerance is applied.
All other comparison operators will raise a TypeError exception.
Constructor & Destructor Documentation
OpenMaya.MFloatMatrix.__init__
(
)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Member Function Documentation
OpenMaya.MFloatMatrix.__add__
(
)
x.__add__(y) <==> x+y
OpenMaya.MFloatMatrix.__delitem__
(
)
x.__delitem__(y) <==> del x[y]
OpenMaya.MFloatMatrix.__eq__
(
)
x.__eq__(y) <==> x==y
OpenMaya.MFloatMatrix.__ge__
(
)
x.__ge__(y) <==> x>=y
OpenMaya.MFloatMatrix.__getitem__
(
)
x.__getitem__(y) <==> x[y]
OpenMaya.MFloatMatrix.__gt__
(
)
x.__gt__(y) <==> x>y
OpenMaya.MFloatMatrix.__iadd__
(
)
x.__iadd__(y) <==> x+y
OpenMaya.MFloatMatrix.__imul__
(
)
x.__imul__(y) <==> x*y
OpenMaya.MFloatMatrix.__isub__
(
)
x.__isub__(y) <==> x-y
OpenMaya.MFloatMatrix.__le__
(
)
x.__le__(y) <==> x<=y
OpenMaya.MFloatMatrix.__len__
(
)
x.__len__() <==> len(x)
OpenMaya.MFloatMatrix.__lt__
(
)
x.__lt__(y) <==> x<y
OpenMaya.MFloatMatrix.__mul__
(
)
x.__mul__(y) <==> x*y
OpenMaya.MFloatMatrix.__ne__
(
)
x.__ne__(y) <==> x!=y
OpenMaya.MFloatMatrix.__radd__
(
)
x.__radd__(y) <==> y+x
OpenMaya.MFloatMatrix.__repr__
(
)
x.__repr__() <==> repr(x)
OpenMaya.MFloatMatrix.__rmul__
(
)
x.__rmul__(y) <==> y*x
OpenMaya.MFloatMatrix.__rsub__
(
)
x.__rsub__(y) <==> y-x
OpenMaya.MFloatMatrix.__setitem__
(
)
x.__setitem__(i, y) <==> x[i]=y
OpenMaya.MFloatMatrix.__str__
(
)
x.__str__() <==> str(x)
OpenMaya.MFloatMatrix.__sub__
(
)
x.__sub__(y) <==> x-y
OpenMaya.MFloatMatrix.adjoint
(
)
Returns a new matrix containing this matrix's adjoint.
Returns the matrix element for the specified row and column.
Signature:
getElement(row,col)
Parameters:
row - Int
col - Int
Returns:
Float
Description:
Returns the matrix element specified by row and col. For retrieving single elements this is faster than indexing into the matrix as a sequence because it does not require the creation of an entire row tuple simply to retrieve one element from that row.
OpenMaya.MFloatMatrix.homogenize
(
)
Returns a new matrix containing the homogenized version of this matrix.