L_UMTP_Invert3x3
This function inverts a 3x3 matrix.
To improve computing performance, the input matrix alrM and the result alrMinv are passed as VAR_IN_OUT. The memory for alrMinv must be provided in the application.
|
|
|
|
L_UMTP_Invert3x3 |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
ARRAY[1..3, 1..3] OF LREAL |
- |
|
alrM |
|
|
|
|
|
ARRAY[1..3, 1..3] OF LREAL |
- |
|
alrMinv |
|
|
|
|
|
|
|
|
|
|
|
|
|
Inputs and outputs
|
Name Data type |
Information/possible settings |
|
|---|---|---|
|
alrM ARRAY[1..3, 1..3] OF LREAL |
Matrix This variable is read-only. |
|
|
alrMinv ARRAY[1..3, 1..3] OF LREAL |
Resulting inverse matrix Write access is made to this variable. |
|
Outputs
|
Name Data type |
Value/meaning |
|
|---|---|---|
|
L_UMTP_Invert3x3 BOOL |
TRUE |
The matrix was successfully inverted. |
|
FALSE |
The matrix alrM is singular and cannot be inverted. |
|