Skip to content

Commit 120de5c

Browse files
Fix build
1 parent 2ebf3bb commit 120de5c

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

src/ImageSharp.Drawing/Shapes/CubicBezierLineSegment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public CubicBezierLineSegment Transform(Matrix3x2 matrix)
9191
return new CubicBezierLineSegment(transformedPoints);
9292
}
9393

94-
/// <inheritdoc/> the matrix applied to it.</returns>
94+
/// <inheritdoc/>
9595
ILineSegment ILineSegment.Transform(Matrix3x2 matrix) => this.Transform(matrix);
9696

9797
private static PointF[] GetDrawingPoints(PointF[] controlPoints)

tests/ImageSharp.Drawing.Tests/Drawing/DrawPathTests.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,9 @@ public void DrawPath<TPixel>(TestImageProvider<TPixel> provider, string colorNam
3838
new Vector2(60, 10),
3939
new Vector2(10, 400));
4040

41-
// OLD
42-
// var ellipticArcSegment1 = new EllipticalArcLineSegment(80, 425, (float)Math.Sqrt(5525), 40, GeometryUtilities.RadianToDegree((float)Math.Atan2(25, 70)), -90, -180, Matrix3x2.Identity);
43-
// var ellipticArcSegment2 = new EllipticalArcLineSegment(150, 520, 140, 70, 0, 180, 360, Matrix3x2.Identity);
44-
45-
// NEW - END PARAMS - WORKING!!
4641
var ellipticArcSegment1 = new ArcLineSegment(new Vector2(10, 400), new Vector2(150, 450), new SizeF((float)Math.Sqrt(5525), 40), GeometryUtilities.RadianToDegree((float)Math.Atan2(25, 70)), true, true);
4742
var ellipticArcSegment2 = new ArcLineSegment(new(150, 450), new(149F, 450), new SizeF(140, 70), 0, true, true);
4843

49-
// NEW CENTER PARAMS
50-
// var ellipticArcSegment1 = new ArcLineSegment(new Vector2(80, 425), new SizeF((float)Math.Sqrt(5525), 40), GeometryUtilities.RadianToDegree((float)Math.Atan2(25, 70)), 180, 180);
51-
// var ellipticArcSegment2 = new ArcLineSegment(new Vector2(150, 520), new SizeF(140, 70), 0, 270, 360);
52-
5344
var path = new Path(linearSegment, bezierSegment, ellipticArcSegment1, ellipticArcSegment2);
5445

5546
Rgba32 rgba = TestUtils.GetColorByName(colorName);

0 commit comments

Comments
 (0)