Home | Trees | Index | Help |
|
---|
Module Mathutils :: Class Matrix |
|
Attention: Quaternion data can be wrapped or non-wrapped. When a object is wrapped it means that the object will give you direct access to the data inside of blender. Modification of this object will directly change the data inside of blender. To copy a wrapped object you need to use the object's constructor. If you copy and object by assignment you will not get a second copy but a second reference to the same data. Only certain functions will return wrapped data. This will be indicated in the method description. Example:
wrappedObject = Object.getAttribute() #this is wrapped data print wrappedObject.wrapped #prints 'True' copyOfObject = Object(wrappedObject) #creates a copy of the object secondPointer = wrappedObject #creates a second pointer to the same data print wrappedObject.attribute #prints '5' secondPointer.attribute = 10 print wrappedObject.attribute #prints '10' print copyOfObject.attribute #prints '5'
Notes:
Method Summary | |
---|---|
New matrix object. |
Create a new matrix object from initialized values. |
Returns a copy of this matrix | |
float |
Return the determinant of a matrix. |
Set the matrix to the identity matrix. | |
Set the matrix to its inverse. | |
Resize the matrix to by 4x4 | |
Matrix object. |
Return the 3d submatrix corresponding to the linear term of the embedded affine transformation in 3d. |
Vector object. |
Return a the scale part of a 3x3 or 4x4 matrix. |
Euler object |
Return an Euler representation of the rotation matrix (3x3 or 4x4 matrix only). |
Quaternion object |
Return a quaternion representation of the rotation matrix |
Vector object. |
Return a the translation part of a 4 row matrix. |
Set the matrix to its transpose. | |
Set all matrix values to 0. |
Instance Variable Summary | |
---|---|
colSize : The column size of the matrix. | |
rowSize : The row size of the matrix. | |
wrapped : Whether or not this object wrapps internal data |
Method Details |
---|
__init__(list1=None,
list2=None,
list3=None,
list4=None)
|
copy()Returns a copy of this matrix
|
determinant()Return the determinant of a matrix. See http://en.wikipedia.org/wiki/Determinant
|
identity()Set the matrix to the identity matrix. An object with zero location and rotation, a scale of 1, will have an identity matrix. See http://en.wikipedia.org/wiki/Identity_matrix
|
invert()Set the matrix to its inverse. See http://en.wikipedia.org/wiki/Inverse_matrix
|
resize4x4()Resize the matrix to by 4x4
|
rotationPart()Return the 3d submatrix corresponding to the linear term of the embedded affine transformation in 3d. This matrix represents rotation and scale. Note that the (4,4) element of a matrix can be used for uniform scaling, too.
|
scalePart()Return a the scale part of a 3x3 or 4x4 matrix.
|
toEuler()Return an Euler representation of the rotation matrix (3x3 or 4x4 matrix only).
|
toQuat()Return a quaternion representation of the rotation matrix
|
translationPart()Return a the translation part of a 4 row matrix.
|
transpose()Set the matrix to its transpose. See http://en.wikipedia.org/wiki/Transpose
|
zero()Set all matrix values to 0.
|
Instance Variable Details |
---|
colSizeThe column size of the matrix. |
rowSizeThe row size of the matrix. |
wrappedWhether or not this object wrapps internal data |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu May 10 20:32:00 2007 | http://epydoc.sf.net |