Home | Trees | Indices | Help |
|
---|
|
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
Classes | |
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. |
Functions | |||
|
|||
Vector object |
|
||
float |
|
||
float |
|
||
float |
|
||
(Vector object, Vector object) |
|
||
Vector object. |
|
||
Vector object. |
|
||
float |
|
||
float |
|
||
Vector object |
|
||
Vector object |
|
||
Vector object |
|
||
Matrix object. |
|
||
Matrix object. |
|
||
Matrix object. |
|
||
Matrix object. |
|
||
Matrix object. |
|
||
Matrix object. |
|
||
Vector object |
|
||
Quaternion object. |
|
||
Quaternion object. |
|
||
float |
|
||
Quaternion object |
|
||
Quaternion object |
|
||
Euler object |
|
||
|
Function Details |
|
|
|
|
|
|
Attention: DEPRECATED use vector.copy() 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 You should use the Euler constructor directly to make copies of Euler objects Example: newEuler = Euler(myEuler) |
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon May 19 15:32:19 2008 | http://epydoc.sourceforge.net |