Trees | Indices | Help |
|
---|
|
(when accessing it from the Game Engine use Mathutils instead of Blender.Mathutils)
This module provides access to matrices, eulers, quaternions and vectors.
Example:import Blender from Blender import Mathutils from Blender.Mathutils import * vec = Vector([1,2,3]) mat = RotationMatrix(90, 4, 'x') matT = TranslationMatrix(vec) matTotal = mat * matT matTotal.invert() mat3 = matTotal.rotationPart quat1 = mat.toQuat() quat2 = mat3.toQuat() angle = DifferenceQuats(quat1, quat2) print angle
|
|||
Vector This object gives access to Vectors in Blender. |
|||
Euler This object gives access to Eulers in Blender. |
|||
Quaternion This object gives access to Quaternions in Blender. |
|||
Matrix This object gives access to Matrices in Blender. |
|
|||
|
|||
Vector object |
|
||
float |
|
||
float |
|
||
float |
|
||
(Vector object, Vector object) |
|
||
float |
|
||
Vector object |
|
||
Vector object |
|
||
Matrix object. |
|
||
Matrix object. |
|
||
Matrix object. |
|
||
Matrix object. |
|
||
Matrix object. |
|
||
Quaternion object |
|
||
Quaternion object |
|
||
Deprecated | |||
---|---|---|---|
Vector object. |
|
||
Vector object. |
|
||
float |
|
||
Vector object |
|
||
Matrix object. |
|
||
Vector object |
|
||
Quaternion object. |
|
||
Quaternion object. |
|
||
float |
|
||
Euler object |
|
||
|
|
|
|
|
|
|
|
Attention: DEPRECATED use vector.copy() instead. |
Attention: DEPRECATED use vector.cross(other) instead. |
Attention: DEPRECATED use vector.dot(other) instead. |
|
|
Attention: DEPRECATED You should now multiply vector * matrix direcly Example: result = myVector * myMatrix |
|
|
|
|
|
|
Attention: DEPRECATED Use the matrix copy funtion to make a copy. Example: newMat = myMat.copy() |
Attention: DEPRECATED You should use direct muliplication on the arguments Example: result = myMatrix * myVector |
Attention: DEPRECATED You should use the Quaterion() constructor directly to create copies of quaternions Example: newQuat = Quaternion(myQuat) |
Attention: DEPRECATED use quat.cross(other) instead. |
Attention: DEPRECATED use quat.dot(other) instead. |
|
|
Attention: DEPRECATED You should use the Euler constructor directly to make copies of Euler objects Example: newEuler = Euler(myEuler) |
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 26 12:07:39 2009 | http://epydoc.sourceforge.net |