Package fabmetheus_utilities :: Module vector3index :: Class Vector3Index
[hide private]
[frames] | no frames]

Class Vector3Index

source code

A three dimensional vector index class.

Instance Methods [hide private]
 
__init__(self, index, x=0.0, y=0.0, z=0.0) source code
 
__abs__(self)
Get the magnitude of the Vector3.
source code
 
magnitude(self)
Get the magnitude of the Vector3.
source code
 
__add__(self, other)
Get the sum of this Vector3 and other one.
source code
 
__copy__(self)
Get the copy of this Vector3.
source code
 
__pos__(self)
Get the copy of this Vector3.
source code
 
copy(self)
Get the copy of this Vector3.
source code
 
__div__(self, other)
Get a new Vector3 by dividing each component of this one.
source code
 
__eq__(self, other)
Determine whether this vector is identical to other one.
source code
 
__floordiv__(self, other)
Get a new Vector3 by floor dividing each component of this one.
source code
 
_getAccessibleAttribute(self, attributeName)
Get the accessible attribute.
source code
 
__hash__(self)
Determine whether this vector is identical to other one.
source code
 
__iadd__(self, other)
Add other Vector3 to this one.
source code
 
__idiv__(self, other)
Divide each component of this Vector3.
source code
 
__ifloordiv__(self, other)
Floor divide each component of this Vector3.
source code
 
__imul__(self, other)
Multiply each component of this Vector3.
source code
 
__isub__(self, other)
Subtract other Vector3 from this one.
source code
 
__itruediv__(self, other)
True divide each component of this Vector3.
source code
 
__mul__(self, other)
Get a new Vector3 by multiplying each component of this one.
source code
 
__ne__(self, other)
Determine whether this vector is not identical to other one.
source code
 
__neg__(self) source code
 
__nonzero__(self) source code
 
__repr__(self)
Get the string representation of this Vector3 index.
source code
 
__rdiv__(self, other)
Get a new Vector3 by dividing each component of this one.
source code
 
__rfloordiv__(self, other)
Get a new Vector3 by floor dividing each component of this one.
source code
 
__rmul__(self, other)
Get a new Vector3 by multiplying each component of this one.
source code
 
__rtruediv__(self, other)
Get a new Vector3 by true dividing each component of this one.
source code
 
_setAccessibleAttribute(self, attributeName, value)
Set the accessible attribute.
source code
 
__sub__(self, other)
Get the difference between the Vector3 and other one.
source code
 
__truediv__(self, other)
Get a new Vector3 by true dividing each component of this one.
source code
 
cross(self, other)
Calculate the cross product of this vector with other one.
source code
 
distance(self, other)
Get the Euclidean distance between this vector and other one.
source code
 
distanceSquared(self, other)
Get the square of the Euclidean distance between this vector and other one.
source code
 
dot(self, other)
Calculate the dot product of this vector with other one.
source code
 
dropAxis(self, which=2)
Get a complex by removing one axis of the vector3.
source code
 
getFloatList(self)
Get the vector as a list of floats.
source code
 
getIsDefault(self)
Determine if this is the zero vector.
source code
 
getNormalized(self)
Get the normalized Vector3.
source code
 
magnitudeSquared(self)
Get the square of the magnitude of the Vector3.
source code
 
maximize(self, other)
Maximize the Vector3.
source code
 
minimize(self, other)
Minimize the Vector3.
source code
 
normalize(self)
Scale each component of this Vector3 so that it has a magnitude of 1.
source code
 
reflect(self, normal)
Reflect the Vector3 across the normal, which is assumed to be normalized.
source code
 
setToVector3(self, other)
Set this Vector3 to be identical to other one.
source code
 
setToXYZ(self, x, y, z)
Set the x, y, and z components of this Vector3.
source code
Method Details [hide private]

normalize(self)

source code 

Scale each component of this Vector3 so that it has a magnitude of 1. If this Vector3 has a magnitude of 0, this method has no effect.