mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-03 22:06:34 +08:00
fix rotation matrices *facepalm no 2*
This commit is contained in:
parent
810bff9d00
commit
b46383a089
@ -267,19 +267,19 @@ TransformationMatrix TransformationMatrix::mat_rotation(double angle_rad, const
|
||||
case X:
|
||||
mat = TransformationMatrix(
|
||||
1.0, 0.0, 0.0, 0.0,
|
||||
0.0, c, s, 0.0,
|
||||
0.0, -s, c, 0.0);
|
||||
0.0, c, -s, 0.0,
|
||||
0.0, s, c, 0.0);
|
||||
break;
|
||||
case Y:
|
||||
mat = TransformationMatrix(
|
||||
c, 0.0, -s, 0.0,
|
||||
c, 0.0, s, 0.0,
|
||||
0.0, 1.0, 0.0, 0.0,
|
||||
s, 0.0, c, 0.0);
|
||||
-s, 0.0, c, 0.0);
|
||||
break;
|
||||
case Z:
|
||||
mat = TransformationMatrix(
|
||||
c, s, 0.0, 0.0,
|
||||
-s, c, 0.0, 0.0,
|
||||
c, -s, 0.0, 0.0,
|
||||
s, c, 0.0, 0.0,
|
||||
0.0, 0.0, 1.0, 0.0);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user