Home | Trees | Indices | Help |
|
---|
|
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'
Instance Methods | |||
New matrix object. |
|
||
|
|||
|
|||
|
|||
|
|||
float |
|
||
|
|||
Matrix object. |
|
||
Vector object. |
|
||
Vector object. |
|
||
|
|||
Euler object |
|
||
Quaternion object |
|
Instance Variables | |
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 |
Create a new matrix object from initialized values. Example:matrix = Matrix([1,1,1],[0,1,0],[1,0,0]) matrix = Matrix(mat) matrix = Matrix(seq1, seq2, vector)
|
|
|
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
|
Set the matrix to its transpose. See http://en.wikipedia.org/wiki/Transpose
|
Return the determinant of a matrix. See http://en.wikipedia.org/wiki/Determinant
|
Set the matrix to its inverse. See http://en.wikipedia.org/wiki/Inverse_matrix
|
|
|
Note: This method does not return negative a scale on any axis because it is not possible to obtain this data from the matrix alone. |
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon May 19 15:32:20 2008 | http://epydoc.sourceforge.net |