mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 01:55:59 +08:00
Fixed typo
This commit is contained in:
parent
7cf67db332
commit
2ccdfe6853
@ -1194,7 +1194,7 @@ Vec3d extract_euler_angles(const Eigen::Matrix<double, 3, 3, Eigen::DontAlign>&
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
angles(1) = 0.0;
|
angles(0) = 0.0;
|
||||||
angles(1) = ::atan2(-rotation_matrix(2, 0), sy);
|
angles(1) = ::atan2(-rotation_matrix(2, 0), sy);
|
||||||
angles(2) = (angles(1) >-0.0) ? ::atan2(rotation_matrix(1, 2), rotation_matrix(1, 1)) : ::atan2(-rotation_matrix(1, 2), rotation_matrix(1, 1));
|
angles(2) = (angles(1) >-0.0) ? ::atan2(rotation_matrix(1, 2), rotation_matrix(1, 1)) : ::atan2(-rotation_matrix(1, 2), rotation_matrix(1, 1));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user