cross#
- Vector.cross(other)[source]#
Calculate cross (outer) product with other.
- Parameters:
- other
VectororVectorArray
- other
- Returns:
- cross_product
VectororVectorArray If other is type
Vector, returnsVector.If other is type
VectorArray, returnsVectorArray.
- cross_product
Examples
>>> vec_a = ap.Vector(1, 0, 0) >>> vec_b = ap.Vector(0, 1, 0) >>> vec_a.cross(vec_b) Vector(0.0, 0.0, 1.0)