Skip to content

Commit 514d039

Browse files
Fix build issues
1 parent 5792bb2 commit 514d039

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

src/ImageSharp/Common/Helpers/GaussianEliminationSolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace SixLabors.ImageSharp.Common.Helpers;
66
/// <summary>
77
/// Represents a solver for systems of linear equations using the Gaussian Elimination method.
88
/// This class applies Gaussian Elimination to transform the matrix into row echelon form and then performs back substitution to find the solution vector.
9-
/// This implementation is based on: https://www.algorithm-archive.org/contents/gaussian_elimination/gaussian_elimination.html
9+
/// This implementation is based on: <see href="https://www.algorithm-archive.org/contents/gaussian_elimination/gaussian_elimination.html"/>
1010
/// </summary>
1111
internal static class GaussianEliminationSolver
1212
{

src/ImageSharp/Common/Helpers/QuadDistortionHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal static class QuadDistortionHelper
2121
/// <returns>The computed projection matrix for the quad distortion.</returns>
2222
/// <remarks>
2323
/// This method is based on the algorithm described in the following article:
24-
/// https://blog.mbedded.ninja/mathematics/geometry/projective-transformations/
24+
/// <see href="https://blog.mbedded.ninja/mathematics/geometry/projective-transformations/"/>
2525
/// </remarks>
2626
public static Matrix4x4 ComputeQuadDistortMatrix(Rectangle rectangle, PointF topLeft, PointF topRight, PointF bottomRight, PointF bottomLeft)
2727
{
@@ -65,7 +65,7 @@ public static Matrix4x4 ComputeQuadDistortMatrix(Rectangle rectangle, PointF top
6565
Matrix4x4 projectionMatrix = new(
6666
b[0], b[3], 0, b[6],
6767
b[1], b[4], 0, b[7],
68-
0, 0, 1, 0,
68+
0, 0, 1, 0,
6969
b[2], b[5], 0, 1);
7070
#pragma warning restore SA1117
7171

src/ImageSharp/Processing/ProjectiveTransformBuilder.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,7 @@ public ProjectiveTransformBuilder AppendTranslation(Vector2 position)
289289
/// <param name="bottomLeft">The bottom-left corner point of the distorted quad.</param>
290290
/// <returns>The <see cref="ProjectiveTransformBuilder"/>.</returns>
291291
public ProjectiveTransformBuilder PrependQuadDistortion(PointF topLeft, PointF topRight, PointF bottomRight, PointF bottomLeft)
292-
=> this.Prepend(
293-
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft),
294-
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft));
292+
=> this.Prepend(size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft));
295293

296294
/// <summary>
297295
/// Appends a quad distortion matrix using the specified corner points.
@@ -302,10 +300,7 @@ public ProjectiveTransformBuilder PrependQuadDistortion(PointF topLeft, PointF t
302300
/// <param name="bottomLeft">The bottom-left corner point of the distorted quad.</param>
303301
/// <returns>The <see cref="ProjectiveTransformBuilder"/>.</returns>
304302
public ProjectiveTransformBuilder AppendQuadDistortion(PointF topLeft, PointF topRight, PointF bottomRight, PointF bottomLeft)
305-
=> this.Append(
306-
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft),
307-
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft)
308-
);
303+
=> this.Append(size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft));
309304

310305
/// <summary>
311306
/// Prepends a raw matrix.

0 commit comments

Comments
 (0)