(INTERNAL) Generic 3-D vector base class.
|
__init__(self,
x_xyz,
y=0,
z=0,
ll=None,
name='')
New Vector3d or Vector3dBase instance. |
|
|
|
__abs__(self)
Return the norm of this vector. |
|
|
|
|
|
|
|
__cmp__(self,
other)
Compare this and an other vector |
|
|
|
cmp(self,
other)
Compare this and an other vector |
|
|
|
__div__(self,
scalar)
Divide this vector by a scalar. |
|
|
|
__truediv__(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. |
|
|
|
angleTo(self,
other,
vSign=None,
wrap=False)
Compute the angle between this and an other vector. |
|
|
|
apply(self,
fun2,
other_x,
*y_z,
**fun2_kwds)
Apply a function component-wise to 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 . |
|
|
|
equirectangular(self,
other)
Approximate the different between this and an other vector. |
|
|
|
intermediateTo(self,
other,
fraction,
**unused)
Locate the vector at a given fraction between (or along) this and an
other vector. |
|
|
|
isconjugateTo(self,
other,
minum=1,
eps=2.22044604925e-16)
Determine whether this and an other vector are conjugates. |
|
|
|
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_up)
Refined class comparison. |
|
|
|
plus(self,
other)
Add this vector and an other vector. |
|
|
|
sum(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 . |
|
|
|
times(self,
factor)
Multiply this vector by a scalar. |
|
|
|
times_(self,
other_x,
*y_z)
Multiply this vector's components by separate scalars. |
|
|
|
to2ab(self)
DEPRECATED, use property Nvector.philam . |
|
|
|
to2ll(self)
DEPRECATED, use property Nvector.latlon . |
|
|
|
|
|
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__ ,
toRepr
Inherited from named._Named :
_DOT_ ,
attrs ,
classof ,
copy ,
dup ,
rename ,
toStr2
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|