simGetEulerAnglesFromMatrix

Retrieves the Euler angles from a transformation matrix

C++ synopsis

int simGetEulerAnglesFromMatrix(const double* matrix, double* eulerAngles)

Arguments

  • matrix: array of 12 values [Vx0 Vy0 Vz0 P0 Vx1 Vy1 Vz1 P1 Vx2 Vy2 Vz2 P2]
  • eulerAngles: pointer to 3 values

Return

  • -1 if operation was not successful


See also: