Trees | Indices | Help |
---|
|
This object gives access to Vectors in Blender.
Attention: Vector 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'
|
|||
Vector object. |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Quaternion |
|
||
Vector object matching the size of this vector. |
|
|
Create a new 2d, 3d, or 4d Vector object from a list of floating point numbers.
Note: that python uses higher precission floating point numbers, so values assigned to a vector may have some rounding error. Example: v = Vector(1,0,0) v = Vector(myVec) v = Vector(list) |
Returns a copy of this vector
|
Set all values to zero.
|
Normalize the vector, making the length of the vector always 1.0
Notes:
|
Set all values to their negative.
|
Resize the vector to 2d.
|
Resize the vector to 3d. New axis will be 0.0.
|
Resize the vector to 4d. New axis will be 0.0. The last component will be 1.0, to make multiplying 3d vectors by 4x4 matrices easier.
|
Return a quaternion rotation from the vector and the track and up axis.
|
Return the reflection vector from the mirror vector argument.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Oct 24 10:23:52 2008 | http://epydoc.sourceforge.net |