Trees | Indices | Help |
---|
|
This object gives access to Quaternions in Blender.
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'
|
|||
New quaternion object. |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Euler object |
|
||
Matrix object |
|
|
Create a new quaternion object from initialized values. Example: quat = Quaternion(1,2,3,4) quat = Quaternion(axis, angle) quat = Quaternion() quat = Quaternion(180, list)
|
Set the quaternion to the identity quaternion.
|
make a copy of the quaternion.
|
Set the quaternion to its negative.
|
Set the quaternion to its conjugate.
|
Set the quaternion to its inverse
|
Normalize the quaternion.
|
Return Euler representation of the quaternion.
|
Return a matrix representation of the quaternion.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Oct 24 10:23:52 2008 | http://epydoc.sourceforge.net |