PyGeo: a dynamic geometry toolkit

vector

Methods defined in vector

f __rmul__(...)

f __init__(...)

f cross(...)

The cross product of this vector and another.

f __abs__(...)

Return the length of this vector.

f __pos__(...)

Returns the vector itself.

f proj(...)

The vector projection of this vector onto another.

f __len__(...)

f __mul__(...)

f __isub__(...)

f comp(...)

The scalar projection of this vector onto another.

f __idiv__(...)

f norm(...)

The unit vector of this vector.

f diff_angle(...)

The angle between this vector and another, in radians.

f astuple(...)

Convert this vector to a tuple. Same as tuple(vector), but much faster.

f __add__(...)

f rotate(...)

Rotate this vector about the specified axis through the specified angle, in radians

f __imul__(...)

f clear(...)

Zero the state of this vector. Potentially useful for reusing a temporary variable.

f __iadd__(...)

f __div__(...)

f __neg__(...)

f __sub__(...)

f dot(...)

The dot product of this vector and another.

Attributes

a mag

<property object at 0x015D18A0>

a mag2

<property object at 0x015D18C8>

a x

<property object at 0x015D1828>

a y

<property object at 0x015D1850>

a z

<property object at 0x015D1878>

See the source for more information.