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? |
|
|
|
|
__init__(self,
x,
y,
z,
ll=None,
name='')
New 3-D 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)
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. |
|
|
|
|
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. |
|
|
|
|
negate(self)
Return this vector in opposite direction. |
|
|
|
|
others(self,
other,
name='other')
Refined class comparison. |
|
|
|
|
parse(self,
str3d,
sep=',')
Parse an "x, y, z" string. |
|
|
|
|
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. |
|
|
|
|
unit(self,
ll=None)
Normalize this vector to unit length. |
|
|
|
Inherited from named._NamedBase:
__repr__,
__str__,
toStr2
Inherited from named._Named:
_dot_,
attrs,
classof,
copy
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|