Reference vectors32 moduleΒΆ

Help on module vectors32.vectors32 in vectors32:

NAME
vectors32.vectors32
DESCRIPTION
vectors32.py - module for Vector class, basic operation of vector algebra. Python 3.2
CLASSES
builtins.object
Vector
class Vector(builtins.object)
Methods defined here:

__add__(self, other)
Vector addition.

__eq__(self, other)
Verify that two vectors are equal.

__init__(self, x=0, y=0, z=0)

__mul__(self, other)
Scalar (“dot”) product [ * ].
self [.] other when other is Vector,
self * other when other is number,
i.e. other==Vector –> x product self x other
other==scalar –> multiply vector by scalar.
This method is invoked by * symbol!

__pow__(self, other)
[ ** ] Vector product self x other.

__repr__(self)

__rmul__(self, other)
number * vector –> vector

__str__(self)
Vector string for printing.

__sub__(self, other)
Vector subtraction.

———————————————————————-
Data descriptors defined here:

normalize
Reduce vector size to 1.0 and return it to the caller.

size
Determine the magnitude (‘size’) of the vector
and return it to the caller.

x

y

z

———————————————————————-
Data and other attributes defined here:

__hash__ = None
VERSION
0.0.5
FILE
/usr/local/lib/python3.2/dist-packages/vectors32/vectors32.py

Previous topic

User Manual - Module vectors32

This Page