CrossProductNormed (FB)

FUNCTION_BLOCK CrossProductNormed

This function will calculate the Cartesian 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

Normed outer product

xError

BOOL

Error flag

TRUE: If the calculated outer product yields the null vector so that scaling is not possible