4.8.3.92. ORIENTATIONMATRIX
ORIENTATIONMATRIX subroutine returns an orientation matrix from an inputted Euler angle.
Language type |
Subroutine |
FORTRAN |
call orientationmatrix (EAtype, EA, A, Errflg) |
C/C++ |
orientationmatrix (EAtype, EA, A, &Errflg) |
Variable Name |
Size |
Description |
EAtype |
int |
Euler angle type. EAtype should be “313”, “321” or “123” value.
|
EA |
double[3] |
An array of double precision type. The array size must be 3. This is input variables as an Euler angle. EA[0] is a 1st rotate anlge of each Euler angle. EA[1] is a 2nd rotate angle. EA[2] is a 3rd rotate angle. |
A |
double[9] |
An array of double precision type. The array size must be 9. This is output variables as an orientation matrix. |
error |
int |
Error flag. If the result of this argument is -1 (means TRUE in Fortran logical value), there is no error. The others mean that there is an error. |
Code Example
Refer to GET_FFLEX_NODEPOS.