vec3
index
vec3.py

vector of size 3, for Cartesian coordinates
 
Constructor:
 
Vec3(x,y,z) - initialize with x,y,z values
 
Use:
 
  A Vec3 emulates a sequence object, so elements can be set and queried in the 
  usual fashion.
  Vec3s can be added, subtracted, scaled using the normal operators (+-*/).
 
Additional functions:
 
norm(vec)        - return sqrt(x^2+y^2+z^2).
dot(vec1, vec2)   - return the dot product of two vectors.
cross(vec1, vec2) - return the cross product of two vectors.
unitVec(vec)      - return a unit vector in the direction of vec.
  
 

 
Classes
       
__builtin__.object
Vec3
Vec3Ptr

 
class Vec3(__builtin__.object)
     Methods defined here:
__add__(*args)
__del__(self, destroy=<built-in function delete_Vec3>)
__div__(*args)
__getattr__ lambda self, name
__getitem__(*args)
__iadd__(*args)
__idiv__(*args)
__imul__(*args)
__init__(self, *args)
__isub__(*args)
__len__(*args)
__mul__(*args)
__neg__(*args)
__rdiv__(*args)
__repr__(*args)
__rmul__(*args)
__setattr__ lambda self, name, value
__setitem__(*args)
__str__(*args)
__sub__(*args)
help(*args)
tuple(*args)

Data and other attributes defined here:
__dict__ = <dictproxy object at 0xee9b40>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Vec3' objects>
list of weak references to the object (if defined)

 
class Vec3Ptr(Vec3)
    
Method resolution order:
Vec3Ptr
Vec3
__builtin__.object

Methods defined here:
__init__(self, this)

Methods inherited from Vec3:
__add__(*args)
__del__(self, destroy=<built-in function delete_Vec3>)
__div__(*args)
__getattr__ lambda self, name
__getitem__(*args)
__iadd__(*args)
__idiv__(*args)
__imul__(*args)
__isub__(*args)
__len__(*args)
__mul__(*args)
__neg__(*args)
__rdiv__(*args)
__repr__(*args)
__rmul__(*args)
__setattr__ lambda self, name, value
__setitem__(*args)
__str__(*args)
__sub__(*args)
help(*args)
tuple(*args)

Data and other attributes inherited from Vec3:
__dict__ = <dictproxy object at 0xee9fd8>
dictionary for instance variables (if defined)
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Vec3' objects>
list of weak references to the object (if defined)

 
Functions
       
cross(...)
dot(...)
help(...)
norm(...)
unitVec(...)