CrossProduct (FB)ΒΆ

FUNCTION_BLOCK CrossProduct

This function will calculate the Cartesian product (outer product) of two vectors \(v_{1}, v_{2} \in \mathbb{R^{3}}\). The result will be returned in vector \(v = v_{1} \times v_{2} \in \mathbb{R^{3}}\).

Note

Keep in mind that, due to rounding errors, the input of two collinear vectors will not necessarily result in the null vector.

InOut:

Scope

Name

Type

Comment

Input

v1

Vector3d

Input vector \(v_{1} \in \mathbb{R}\)

v2

Vector3d

Input vector \(v_{2} \in \mathbb{R}\)

Output

v

Vector3D

Cartesian product \(v_{1} \times v_{2} \in \mathbb{R^{3}}\)