Skip to content

Commit 81026ba

Browse files
committed
Remove comment to disable Jetbrains formatter from code
1 parent e244efa commit 81026ba

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/ImageSharp/Common/Helpers/QuadDistortionHelper.cs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,16 @@ public static Matrix4x4 ComputeQuadDistortMatrix(Rectangle rectangle, PointF top
3535
PointF q3 = bottomRight;
3636
PointF q4 = bottomLeft;
3737

38-
// @formatter:off
3938
float[][] matrixData =
4039
[
41-
[p1.X, p1.Y, 1, 0, 0, 0, -p1.X * q1.X, -p1.Y * q1.X],
42-
[0, 0, 0, p1.X, p1.Y, 1, -p1.X * q1.Y, -p1.Y * q1.Y],
43-
[p2.X, p2.Y, 1, 0, 0, 0, -p2.X * q2.X, -p2.Y * q2.X],
44-
[0, 0, 0, p2.X, p2.Y, 1, -p2.X * q2.Y, -p2.Y * q2.Y],
45-
[p3.X, p3.Y, 1, 0, 0, 0, -p3.X * q3.X, -p3.Y * q3.X],
46-
[0, 0, 0, p3.X, p3.Y, 1, -p3.X * q3.Y, -p3.Y * q3.Y],
47-
[p4.X, p4.Y, 1, 0, 0, 0, -p4.X * q4.X, -p4.Y * q4.X],
48-
[0, 0, 0, p4.X, p4.Y, 1, -p4.X * q4.Y, -p4.Y * q4.Y],
40+
[p1.X, p1.Y, 1, 0, 0, 0, -p1.X * q1.X, -p1.Y * q1.X],
41+
[0, 0, 0, p1.X, p1.Y, 1, -p1.X * q1.Y, -p1.Y * q1.Y],
42+
[p2.X, p2.Y, 1, 0, 0, 0, -p2.X * q2.X, -p2.Y * q2.X],
43+
[0, 0, 0, p2.X, p2.Y, 1, -p2.X * q2.Y, -p2.Y * q2.Y],
44+
[p3.X, p3.Y, 1, 0, 0, 0, -p3.X * q3.X, -p3.Y * q3.X],
45+
[0, 0, 0, p3.X, p3.Y, 1, -p3.X * q3.Y, -p3.Y * q3.Y],
46+
[p4.X, p4.Y, 1, 0, 0, 0, -p4.X * q4.X, -p4.Y * q4.X],
47+
[0, 0, 0, p4.X, p4.Y, 1, -p4.X * q4.Y, -p4.Y * q4.Y],
4948
];
5049

5150
float[] b =
@@ -62,15 +61,14 @@ public static Matrix4x4 ComputeQuadDistortMatrix(Rectangle rectangle, PointF top
6261

6362
GaussianEliminationSolver.Solve(matrixData, b);
6463

65-
#pragma warning disable SA1117
64+
#pragma warning disable SA1117
6665
Matrix4x4 projectionMatrix = new(
6766
b[0], b[3], 0, b[6],
6867
b[1], b[4], 0, b[7],
6968
0, 0, 1, 0,
7069
b[2], b[5], 0, 1);
71-
#pragma warning restore SA1117
70+
#pragma warning restore SA1117
7271

73-
// @formatter:on
7472
return projectionMatrix;
7573
}
7674
}

0 commit comments

Comments
 (0)