|
|
__init__(self,
*args)
Creates a Vector3 from 3 numeric values or a list-like object
containing at least 3 values. |
source code
|
|
|
|
|
|
|
__copy__(self)
Returns a copy of this vector. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__iter__(self)
Iterates the components in x, y, z order. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__add__(self,
rhs)
Returns the result of adding a vector (or collection of 3 numbers)
from this vector. |
source code
|
|
|
|
__iadd__(self,
rhs)
Adds another vector (or a collection of 3 numbers) to this
vector. |
source code
|
|
|
|
|
|
|
__sub__(self,
rhs)
Returns the result of subtracting a vector (or collection of 3
numbers) from this vector. |
source code
|
|
|
|
_isub__(self,
rhs)
Subtracts another vector (or a collection of 3 numbers) from this
vector. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__mul__(self,
rhs)
Return the result of multiplying this vector by another vector, or
a scalar (single number). |
source code
|
|
|
|
__imul__(self,
rhs)
Multiply this vector by another vector, or a scalar (single
number). |
source code
|
|
|
|
|
|
|
__div__(self,
rhs)
Return the result of dividing this vector by another vector, or a
scalar (single number). |
source code
|
|
|
|
__idiv__(self,
rhs)
Divide this vector by another vector, or a scalar (single
number). |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__neg__(self)
Returns the negation of this vector (a vector pointing in the
opposite direction. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_length(self)
Calculates the length of the vector. |
source code
|
|
|
|
get_magnitude(self)
Calculates the length of the vector. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
normalise(self)
Scales the vector to be length 1. |
source code
|
|
|
|
normalize(self)
Scales the vector to be length 1. |
source code
|
|
|
|
|
|
|
|
|
|
in_sphere(self,
sphere)
Returns true if this vector (treated as a position) is contained
in the given sphere. |
source code
|
|
|
|
dot(self,
other)
Returns the dot product of this vector with another. |
source code
|
|
|
|
cross(self,
other)
Returns the cross product of this vector with another. |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|