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.
  
 
 
 
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
# This file is compatible with both classic and new-style classes.

 
Classes
       
__builtin__.object
Vec3
Vec3Ptr

 
class Vec3(__builtin__.object)
   
 

 
  Methods defined here:
__add__(self, *args, **kwargs)

 
__del__ lambda self

 
__div__(self, *args, **kwargs)

 
__getattr__ lambda self, name

 
__getitem__(self, *args, **kwargs)

 
__iadd__(self, *args, **kwargs)

 
__idiv__(self, *args, **kwargs)

 
__imul__(self, *args, **kwargs)

 
__init__(self, *args)

 
__isub__(self, *args, **kwargs)

 
__len__(self, *args, **kwargs)

 
__mul__(self, *args, **kwargs)

 
__neg__(self, *args, **kwargs)

 
__rdiv__(self, *args, **kwargs)

 
__repr__(self, *args, **kwargs)

 
__rmul__(self, *args, **kwargs)

 
__setattr__ lambda self, name, value

 
__setitem__(self, *args, **kwargs)

 
__str__(self, *args, **kwargs)

 
__sub__(self, *args, **kwargs)

 
help(self, *args, **kwargs)

 
tuple(self, *args, **kwargs)

 

Data and other attributes defined here:
__dict__ = dict_proxy({'__swig_getmethods__': {}, '__isub__...'__neg__': <function __neg__ at 0x2b5605d271b8>})

 
dictionary for instance variables (if defined)
__swig_destroy__ = <built-in function delete_Vec3>

 
__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__(self, *args, **kwargs)

 
__del__ lambda self

 
__div__(self, *args, **kwargs)

 
__getattr__ lambda self, name

 
__getitem__(self, *args, **kwargs)

 
__iadd__(self, *args, **kwargs)

 
__idiv__(self, *args, **kwargs)

 
__imul__(self, *args, **kwargs)

 
__isub__(self, *args, **kwargs)

 
__len__(self, *args, **kwargs)

 
__mul__(self, *args, **kwargs)

 
__neg__(self, *args, **kwargs)

 
__rdiv__(self, *args, **kwargs)

 
__repr__(self, *args, **kwargs)

 
__rmul__(self, *args, **kwargs)

 
__setattr__ lambda self, name, value

 
__setitem__(self, *args, **kwargs)

 
__str__(self, *args, **kwargs)

 
__sub__(self, *args, **kwargs)

 
help(self, *args, **kwargs)

 
tuple(self, *args, **kwargs)

 

Data and other attributes inherited from Vec3:
__dict__ = dict_proxy({'__module__': 'vec3', '__doc__': Non..._init__': <function __init__ at 0x2b5605d27320>})

 
dictionary for instance variables (if defined)
__swig_destroy__ = <built-in function delete_Vec3>

 
__swig_getmethods__ = {}
__swig_setmethods__ = {}
__weakref__ = <attribute '__weakref__' of 'Vec3' objects>

 
list of weak references to the object (if defined)

 
Functions
       
Vec3_swigregister(...)

 
cross(...)

 
dot(...)

 
help(...)

 
norm(...)

 
unitVec(...)

 

 
Data
        __package__ = None
pyXplorHelp = Type help() for interactive help, or help(object) for help about object.