4.8.3.92. ORIENTATIONMATRIX

ORIENTATIONMATRIX subroutine returns an orientation matrix from an inputted Euler angle.

Table 4.229 Function Name

Language type

Subroutine

FORTRAN

call orientationmatrix (EAtype, EA, A, Errflg)

C/C++

orientationmatrix (EAtype, EA, A, &Errflg)

Table 4.230 Parameter information

Variable Name

Size

Description

EAtype

int

Euler angle type. EAtype should be “313”, “321” or “123” value.

  • “313”: Euler angle ZXZ (Psi, Theta, Phi).

  • “321”: Euler angle ZYX (Yaw-Pitch-Roll).

  • “123”: Euler angle XYZ (Theta_x, Theta_y, Theta_z)

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.