@@ -13,7 +13,7 @@ namespace SixLabors.ImageSharp.Drawing
1313 /// </summary>
1414 public class PathBuilder
1515 {
16- private readonly List < Figure > figures = new List < Figure > ( ) ;
16+ private readonly List < Figure > figures = new ( ) ;
1717 private readonly Matrix3x2 defaultTransform ;
1818 private Figure currentFigure = null ;
1919 private Matrix3x2 currentTransform ;
@@ -57,7 +57,7 @@ public PathBuilder SetTransform(Matrix3x2 translation)
5757 /// <returns>The <see cref="PathBuilder"/></returns>
5858 public PathBuilder SetOrigin ( PointF origin )
5959 {
60- // the new origin should be transofrmed based on the default transform
60+ // The new origin should be transformed based on the default transform
6161 this . setTransform . Translation = origin ;
6262 this . currentTransform = this . setTransform * this . defaultTransform ;
6363
@@ -207,7 +207,8 @@ public PathBuilder AddBezier(PointF startPoint, PointF controlPoint1, PointF con
207207 /// <param name="startAngle">The Start angle of the ellipsis, measured in degrees anticlockwise from the Y-axis.</param>
208208 /// <param name="sweepAngle"> The angle between (<paramref name="startAngle"/> and the end of the arc. </param>
209209 /// <returns>The <see cref="PathBuilder"/></returns>
210- public PathBuilder AddEllipticalArc ( RectangleF rect , float rotation , float startAngle , float sweepAngle ) => this . AddEllipticalArc ( ( rect . Right + rect . Left ) / 2 , ( rect . Bottom + rect . Top ) / 2 , rect . Width / 2 , rect . Height / 2 , rotation , startAngle , sweepAngle ) ;
210+ public PathBuilder AddEllipticalArc ( RectangleF rect , float rotation , float startAngle , float sweepAngle )
211+ => this . AddEllipticalArc ( ( rect . Right + rect . Left ) / 2 , ( rect . Bottom + rect . Top ) / 2 , rect . Width / 2 , rect . Height / 2 , rotation , startAngle , sweepAngle ) ;
211212
212213 /// <summary>
213214 /// Adds an elliptical arc to the current figure
@@ -217,7 +218,8 @@ public PathBuilder AddBezier(PointF startPoint, PointF controlPoint1, PointF con
217218 /// <param name="startAngle">The Start angle of the ellipsis, measured in degrees anticlockwise from the Y-axis.</param>
218219 /// <param name="sweepAngle"> The angle between (<paramref name="startAngle"/> and the end of the arc. </param>
219220 /// <returns>The <see cref="PathBuilder"/></returns>
220- public PathBuilder AddEllipticalArc ( Rectangle rect , int rotation , int startAngle , int sweepAngle ) => this . AddEllipticalArc ( ( float ) ( rect . Right + rect . Left ) / 2 , ( float ) ( rect . Bottom + rect . Top ) / 2 , ( float ) rect . Width / 2 , ( float ) rect . Height / 2 , rotation , startAngle , sweepAngle ) ;
221+ public PathBuilder AddEllipticalArc ( Rectangle rect , int rotation , int startAngle , int sweepAngle )
222+ => this . AddEllipticalArc ( ( float ) ( rect . Right + rect . Left ) / 2 , ( float ) ( rect . Bottom + rect . Top ) / 2 , ( float ) rect . Width / 2 , ( float ) rect . Height / 2 , rotation , startAngle , sweepAngle ) ;
221223
222224 /// <summary>
223225 /// Adds an elliptical arc to the current figure
@@ -229,7 +231,8 @@ public PathBuilder AddBezier(PointF startPoint, PointF controlPoint1, PointF con
229231 /// <param name="startAngle">The Start angle of the ellipsis, measured in degrees anticlockwise from the Y-axis.</param>
230232 /// <param name="sweepAngle"> The angle between (<paramref name="startAngle"/> and the end of the arc. </param>
231233 /// <returns>The <see cref="PathBuilder"/></returns>
232- public PathBuilder AddEllipticalArc ( PointF center , float radiusX , float radiusY , float rotation , float startAngle , float sweepAngle ) => this . AddEllipticalArc ( center . X , center . Y , radiusX , radiusY , rotation , startAngle , sweepAngle ) ;
234+ public PathBuilder AddEllipticalArc ( PointF center , float radiusX , float radiusY , float rotation , float startAngle , float sweepAngle )
235+ => this . AddEllipticalArc ( center . X , center . Y , radiusX , radiusY , rotation , startAngle , sweepAngle ) ;
233236
234237 /// <summary>
235238 /// Adds an elliptical arc to the current figure
@@ -241,7 +244,8 @@ public PathBuilder AddBezier(PointF startPoint, PointF controlPoint1, PointF con
241244 /// <param name="startAngle">The Start angle of the ellipsis, measured in degrees anticlockwise from the Y-axis.</param>
242245 /// <param name="sweepAngle"> The angle between (<paramref name="startAngle"/> and the end of the arc. </param>
243246 /// <returns>The <see cref="PathBuilder"/></returns>
244- public PathBuilder AddEllipticalArc ( Point center , int radiusX , int radiusY , int rotation , int startAngle , int sweepAngle ) => this . AddEllipticalArc ( center . X , center . Y , radiusX , radiusY , rotation , startAngle , sweepAngle ) ;
247+ public PathBuilder AddEllipticalArc ( Point center , int radiusX , int radiusY , int rotation , int startAngle , int sweepAngle )
248+ => this . AddEllipticalArc ( center . X , center . Y , radiusX , radiusY , rotation , startAngle , sweepAngle ) ;
245249
246250 /// <summary>
247251 /// Adds an elliptical arc to the current figure
0 commit comments