Generic 3-D vector manipulation.
|
__abs__(self)
Norm of this vector (scalar). |
|
|
|
|
|
__cmp__(self,
other)
Compares this and an other vector? |
|
|
|
__div__(self,
scalar)
Divides this vector by a scalar. |
|
|
|
__eq__(self,
other)
Is this vector equal to an other vector? |
|
|
|
__ge__(self,
other)
Is this vector longer than or equal to an other vector? |
|
|
|
__gt__(self,
other)
Is this vector longer than an other vector? |
|
|
|
|
|
__imatmul__(self,
other)
Cross product of this and another vector. |
|
|
|
__imul__(self,
scalar)
Multiplies this vector by a scalar |
|
|
|
|
|
__isub__(self,
other)
This minus an other vector. |
|
|
|
|
|
__le__(self,
other)
Is this vector shorter than or equal to an other vector? |
|
|
|
__lt__(self,
other)
Is this vector shorter than an other vector? |
|
|
|
__matmul__(self,
other)
Cross product of this and another vector. |
|
|
|
__mul__(self,
scalar)
Multiplies this vector by a scalar |
|
|
|
__ne__(self,
other)
Is this vector not equal to an other vector? |
|
|
|
|
|
|
|
|
|
__rmatmul__(self,
other)
Cross product of an other and this vector. |
|
|
|
__rmul__(self,
scalar)
Multiplies this vector by a scalar |
|
|
|
__rsub__(self,
other)
An other minus this vector. |
|
|
|
__sub__(self,
other)
This minus an other vector. |
|
|
|
__truediv__(self,
scalar)
Divides this vector by a scalar. |
|
|
|
angleTo(self,
other,
vSign=None)
Computes the angle between this and an other vector. |
|
|
|
copy(self)
Copies this vector. |
|
|
|
cross(self,
other)
Cross product of this and an other vector. |
|
|
|
dividedBy(self,
factor)
Divides this vector by a scalar. |
|
|
|
dot(self,
other)
Dot (scalar) product of this and an other vector. |
|
|
|
equals(self,
other,
units=False)
Checks if this and an other vector are equal or equivalent. |
|
|
|
minus(self,
other)
Subtracts an other vector from this vector. |
|
|
|
negate(self)
This vector in opposite direction. |
|
|
|
others(self,
other,
name=' other ' )
Refined class comparison. |
|
|
|
parse(self,
str3d)
Parses an "x, y, z" string representing a Vector3d. |
|
|
|
plus(self,
other)
Adds this and an other vector. |
|
|
|
rotate(self,
axis,
theta)
Rotates this vector by a specified angle around an axis. |
|
|
|
rotateAround(self,
axis,
theta)
Rotates this vector by a specified angle around an axis. |
|
|
|
sum(self,
other)
Adds this and an other vector. |
|
|
|
times(self,
factor)
Multiplies this vector by a scalar. |
|
|
|
to2ll(self)
Converts this vector to (geodetic) lat- and longitude. |
|
|
|
to3xyz(self)
Returns this vector as a 3-tuple. |
|
|
|
toStr(self,
prec=5,
fmt=' (%s) ' ,
sep=' , ' )
String representation of this vector. |
|
|
|
unit(self)
Normalize this vector to unit length. |
|
|
Inherited from bases.Base :
__repr__ ,
__str__ ,
classname ,
toStr2 ,
topsub
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|