Home | Trees | Index | Help |
|
---|
Module Mathutils :: Class Euler |
|
Attention: Euler 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 | |
---|---|
Euler object |
Create a new euler object. |
Matrix object |
Return a matrix representation of the euler. |
Quaternion object |
Return a quaternion representation of the euler. |
Calculate a unique rotation for this euler. | |
Set all values to zero. |
Instance Variable Summary | |
---|---|
wrapped : Whether or not this object is wrapping data directly | |
x : The heading value in degrees. | |
y : The pitch value in degrees. | |
z : The roll value in degrees. |
Method Details |
---|
__init__(list=None)
|
toMatrix()Return a matrix representation of the euler.
|
toQuat()Return a quaternion representation of the euler.
|
unique()Calculate a unique rotation for this euler. Avoids gimble lock.
|
zero()Set all values to zero.
|
Instance Variable Details |
---|
wrappedWhether or not this object is wrapping data directly |
xThe heading value in degrees. |
yThe pitch value in degrees. |
zThe roll value in degrees. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Jul 13 16:50:05 2006 | http://epydoc.sf.net |