FC_RotationMatrixInverse - General Information

Overview

Type:

Function

Available as of:

V1.0.0.0

Versions:

Current version

This chapter provides information on:

Description

Given a 3D rotation matrix, the function evaluates its inverse transformation.

The input matrix must be a rotation matrix. This function will not return a proper result if called on a generic 3D matrix.

When called on a valid matrix, the algorithm implemented by this function will always return the same result of the generic FC_Matrix3DInverse but with a faster execution.

NOTE: There is no internal verification about i_stRotationMatrix being a valid rotation matrix.

Interface

Input

Data type

Description

i_stRotationMatrix

SE_MATH.ST_Matrix3D

A 3D rotation matrix.

Output

Data type

Description

q_xError

BOOL

If this output is set to TRUE, an error has been detected. For details, refer to q_etResult and q_etResultMsg.

q_etResult

ET_Result

Provides diagnostic and status information.

If q_xError = FALSE, then q_etResult provides status information.

If q_xError = TRUE, then q_etResult provides diagnostic/error information.

The enumeration ET_Result contains the possible values of the POU operation results.

q_sResultMsg

STRING[80]

Provides additional information about the current status of the POU.

Return Value

Data type

Description

SE_MATH.ST_Matrix3D

The function returns the inverse transformation of a 3D rotation matrix.

Diagnostic Messages

q_xError

q_etResult

Enumeration value

Description

FALSE

Ok

0

Success

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Success