Use of goto statements makes code harder to read and maintain. Consider refactoring this logic using structured control flow (if/else, functions, or early returns) instead.
}
else
{
Euler[0] = PI / 2.0;
Euler[1] = atan2(CosIn[1], sqrt(CosIn[0] * CosIn[0] + CosIn[2] * CosIn[2]));
}
}
else
{
Euler[0] = atan2(CosIn[0], CosIn[2]);
Euler[1] = atan2(CosIn[1], sqrt(CosIn[0] * CosIn[0] + CosIn[2] * CosIn[2]));
}
Originally posted by @Copilot in #63 (comment)