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 quaternion object. |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Euler object |
|
||
Matrix object |
|
Method Details |
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)
|
|
|
|
|
|
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon May 19 15:32:20 2008 | http://epydoc.sourceforge.net |