CrossProduct (FB)

FUNCTION_BLOCK CrossProduct

This function will calculate the Cartesian product (outer product) of two vectors . The result will be returned in vector .

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

v2

Vector3d

Input vector

Output

v

Vector3D

Cartesian product