Declared in module bhoelHelper
class gVector(Vector) string __author__ = 'Berthold H\366llmann <bhoel@starship.python.net>' string __file__ = '../bhoelHelper/gVector.pyc' string __version__ = '1.1'
This module defines two- and three-dimensional geometrical vectors.
gVectors support the usual mathematical operations ( v1, v2:
gVectors, s: scalar):
v1+v2
v1-v2
v1*v2
s*v1
v1/s
v1.cross(v2)
v1.length()
v1.normal()
v1.angle(v2)
v1.x(), v1[0]
v1.y(), v1[1]
v1.z(), v1[2]
The module offers the following items for export:
gVector(x,y,z)
gVector elements can be arbitrary objects on which the standard
mathematical operators plus the functions sqrt and arccos are
defined.Mostly copied from Konrad Hinsen's (<hinsen@ibs.ibs.fr>) Vector.py by
Berthold Höllmann.