(INTERNAL) Generic 3-D vector base class.
|
__abs__(self)
Return the norm of this vector. |
|
|
|
|
|
|
|
__ceil__(self)
Return a vector with the ceil of these components. |
|
|
|
|
|
__div__(self,
scalar)
Divide this vector by a scalar, this / scalar . |
|
|
|
__divmod__(self,
other)
Not implemented. |
|
|
|
__eq__(self,
other)
Is this vector equal to an other vector? |
|
|
|
__float__(self)
Not implemented, see method float . |
|
|
|
__floor__(self)
Return a vector with the floor of these components. |
|
|
|
__floordiv__(self,
other)
Not implemented. |
|
|
|
__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? |
|
|
|
__hash__(self)
Return this instance' hash . |
|
|
|
__iadd__(self,
other)
Add this and an other vector in-place, this +=
other . |
|
|
|
__idiv__(self,
scalar)
Divide this vector by a scalar in-place, this /=
scalar . |
|
|
|
__ifloordiv__(self,
other)
Not implemented. |
|
|
|
__imatmul__(self,
other)
Cross multiply this and an other vector in-place, this
@= other . |
|
|
|
__imod__(self,
other)
Not implemented. |
|
|
|
__imul__(self,
scalar)
Multiply this vector by a scalar in-place, this *=
scalar . |
|
|
|
__init__(self,
x_xyz,
y=0,
z=0,
ll=None,
**name)
New Vector3d or Vector3dBase instance. |
|
|
|
__int__(self)
Not implemented, see method ints . |
|
|
|
__ipow__(self,
other,
*mod)
Not implemented. |
|
|
|
__isub__(self,
other)
Subtract an other vector from this one in-place, this -=
other . |
|
|
|
__itruediv__(self,
scalar)
Divide this vector by a scalar in-place, this /=
scalar . |
|
|
|
__le__(self,
other)
Is this vector shorter than or equal to an other vector? |
|
|
|
__long__(self)
Not implemented, see method ints . |
|
|
|
__lt__(self,
other)
Is this vector shorter than an other vector? |
|
|
|
__matmul__(self,
other)
Compute the cross product of this and an other vector, this @
other . |
|
|
|
__mod__(self,
other)
Not implemented. |
|
|
|
__mul__(self,
scalar)
Multiply this vector by a scalar, this * scalar . |
|
|
|
__ne__(self,
other)
Is this vector not equal to an other vector? |
|
|
|
__neg__(self)
Return the opposite of this vector. |
|
|
|
|
|
__pos__(self)
Return this vector as-is or a copy. |
|
|
|
__pow__(self,
other,
*mod)
Not implemented. |
|
|
|
|
|
__rdiv__(self,
scalar)
Not implemented. |
|
|
|
__rdivmod__(self,
other)
Not implemented. |
|
|
|
__rfloordiv__(self,
other)
Not implemented. |
|
|
|
__rmatmul__(self,
other)
Compute the cross product of an other and this vector,
other @ this . |
|
|
|
__rmod__(self,
other)
Not implemented. |
|
|
|
__rmul__(self,
scalar)
Multiply this vector by a scalar, this * scalar . |
|
|
|
__round__(self,
*ndigits)
Return a vector with these components rounded . |
|
|
|
__rpow__(self,
other,
*mod)
Not implemented. |
|
|
|
__rsub__(self,
other)
Subtract this vector from an other vector, other -
this . |
|
|
|
__rtruediv__(self,
scalar)
Not implemented. |
|
|
|
__sub__(self,
other)
Subtract an other vector from this vector, this -
other . |
|
|
|
__truediv__(self,
scalar)
Divide this vector by a scalar, this / scalar . |
|
|
|
__trunc__(self)
Return a vector with the trunc of these components. |
|
|
|
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 2-argument function pairwise to the components of this and an
other vector. |
|
|
|
bools(self)
Return the vector with bool components. |
|
|
|
cmp(self,
other)
Compare this and an other vector (Vector3d). |
|
|
|
cross(self,
other,
raiser=None,
eps0=2.220446049250313e-16)
Compute the cross product of this and an other vector. |
|
|
|
dividedBy(self,
divisor)
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 difference between this and an other vector. |
|
|
|
fabs(self)
Return the vector with fabs components. |
|
|
|
floats(self)
Return the vector with float components. |
|
|
|
intermediateTo(self,
other,
fraction,
**unused)
Locate the vector at a given fraction between (or along) this and an
other vector. |
|
|
|
ints(self)
Return the vector with int components. |
|
|
|
isconjugateTo(self,
other,
minum=1,
eps=2.220446049250313e-16)
Determine whether this and an other vector are conjugates. |
|
|
|
isequalTo(self,
other,
units=False,
eps=2.220446049250313e-16)
Check if this and an other vector are equal or equivalent. |
|
|
|
minus(self,
other)
Subtract an other vector from this vector. |
|
|
|
minus_(self,
other_x,
*y_z)
Subtract separate X, Y and Z components from this vector. |
|
|
|
negate(self)
Return the opposite of this vector. |
|
|
|
others(self,
*other,
**name_other_up)
Refined class comparison. |
|
|
|
plus(self,
other)
Add this vector and an other vector. |
|
|
|
plus_(self,
other_x,
*y_z)
Sum of this vector and separate X, Y and Z components. |
|
|
|
rotate(self,
axis,
theta,
fma=False)
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. |
|
|
|
times_(self,
other_x,
*y_z)
Multiply this vector's components by separate X, Y and Z factors. |
|
|
|
|
|
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 :
__format__ ,
attrs ,
classof ,
copy ,
dup ,
methodname ,
rename ,
renamed ,
toStr2
Inherited from object :
__delattr__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|