L_UMTP_CrossProd
This function calculates the cross product (A x B) of two vectors.
To improve the computing performance, the input vectors alrA and alrB and the result alrResult are passed as VAR_IN_OUT. The memory for alrResult must be provided in the application.
|
|
|
|
L_UMTP_CrossProd |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
ARRAY[1..3] OF LREAL |
- |
|
alrA |
|
|
|
|
|
ARRAY[1..3] OF LREAL |
- |
|
alrB |
|
|
|
|
|
ARRAY[1..3] OF LREAL |
- |
|
alrResult |
|
|
|
|
|
|
|
|
|
|
|
|
|
Inputs
|
Name Data type |
Information/possible settings |
|
|---|---|---|
|
alrA ARRAY[1..3] OF LREAL |
Vector A This variable is read-only. |
|
|
alrB ARRAY[1..3] OF LREAL |
Vector B This variable is read-only. |
|
|
alrResult |
Result of the cross product A x B Write access is made to this variable. |
|
Outputs
|
Name Data type |
Value/meaning |
|
|---|---|---|
|
L_UMTP_CrossProd BOOL |
TRUE |
The cross product was successfully calculated. |