Generic 3-D vector manipulation.
|
__abs__(self)
Return the norm of this vector. |
|
|
|
|
|
__cmp__(self,
other)
Compare this and an other vector |
|
|
|
__div__(self,
scalar)
Divide 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? |
|
|
|
|
|
__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)
Compute the cross product of this and an other vector. |
|
|
|
__mul__(self,
scalar)
Multiply this vector by a scalar |
|
|
|
__ne__(self,
other)
Is this vector not equal to an other vector? |
|
|
|
|
|
|
|
|
|
__rmatmul__(self,
other)
Compute the cross product of an other and this vector. |
|
|
|
__rsub__(self,
other)
Subtract this vector from an other vector. |
|
|
|
__sub__(self,
other)
Subtract an other vector from this vector. |
|
|
|
__truediv__(self,
scalar)
Divide this vector by a scalar. |
|
|
|
angleTo(self,
other,
vSign=None,
wrap=False)
Compute the angle between this and an other vector. |
|
|
|
cmp(self,
other)
Compare this and an other vector |
|
|
|
cross(self,
other,
raiser=None)
Compute the cross product of this and an other vector. |
|
|
|
dividedBy(self,
factor)
Divide this vector by a scalar. |
|
|
|
dot(self,
other)
Compute the dot (scalar) product of this and an other vector. |
|
|
|
equals(self,
other,
units=False)
DEPRECATED, use method isequalTo . |
|
|
|
iscolinearWith(self,
point1,
point2,
eps=2.22044604925e-16)
Check whether this and two other points are colinear. |
|
|
|
isequalTo(self,
other,
units=False,
eps=2.22044604925e-16)
Check if this and an other vector are equal or equivalent. |
|
|
|
minus(self,
other)
Subtract an other vector from this vector. |
|
|
|
nearestOn(self,
other1,
other2,
within=True)
Locate the point between two points closest to this point. |
|
|
|
negate(self)
Return this vector in opposite direction. |
|
|
|
others(self,
*other,
**name_other_up)
Refined class comparison. |
|
|
|
parse(self,
str3d,
sep=' , ' ,
name='
' )
Parse an "x, y, z" string to a similar Vector3d instance. |
|
|
|
plus(self,
other)
Add this vector and an other vector. |
|
|
|
rotate(self,
axis,
theta)
Rotate this vector around an axis by a specified angle. |
|
|
|
rotateAround(self,
axis,
theta)
DEPRECATED, use method rotate . |
|
|
|
sum(self,
other)
Add this vector and an other vector. |
|
|
|
times(self,
factor)
Multiply this vector by a scalar. |
|
|
|
to2ab(self)
DEPRECATED, use property Nvector.philam . |
|
|
|
to2ll(self)
DEPRECATED, use property Nvector.latlon . |
|
|
|
to3xyz(self)
DEPRECATED, use property xyz . |
|
|
|
toStr(self,
prec=5,
fmt=' (%s) ' ,
sep=' , ' )
Return a string representation of this vector. |
|
|
|
trilaterate3d2(self,
radius,
center2,
radius2,
center3,
radius3,
eps=2.22044604925e-16)
Trilaterate this and two other spheres, each given as a (3d) center
and radius. |
|
|
|
unit(self,
ll=None)
Normalize this vector to unit length. |
|
|
Inherited from named._NamedBase :
__repr__ ,
__str__ ,
toRepr
Inherited from named._Named :
_dot_ ,
attrs ,
classof ,
copy ,
toStr2
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|