Vector3D(x=0.0, y=0.0, z=0.0)
Represents a 3D vector.
x:float | Vector3D | array-like- numeric: sets
xvalue Vector3D: copy constructor- length-3 array-like: interpreted as
[x, y, z]
- numeric: sets
y:float, default0.0(used whenxis numeric)z:float, default0.0(used whenxis numeric)
v1 + v2,v1 - v2v * scalar,scalar * v- element-wise
v1 * v2 v / scalarv ** scalaror element-wise with anotherVector3D
normalize()- In-place normalization to unit length when norm is non-zero.
dot(other)- Dot product with
Vector3Dor length-3np.ndarray.
- Dot product with
cross(other)- Cross product with
Vector3D.
- Cross product with
rotate(r33)- Rotate using a
3x3rotation matrix.
- Rotate using a
sum()- Returns
x + y + z.
- Returns
min(other),max(other)- Componentwise min/max with scalar or
Vector3D.
- Componentwise min/max with scalar or
v.q -> Quaternion: pure quaternion[0, x, y, z].v.v -> np.ndarray: array[x, y, z].v.norm -> float: vector magnitude.v.isZero -> bool: near-zero check.
- Vector kernels can be accelerated by optional
pyIMU._vcore.