diff --git a/Pinta.Tools/Editable/Shapes/GeneratedPoint.cs b/Pinta.Tools/Editable/Shapes/GeneratedPoint.cs
index f2e2eb195..8b84b4238 100644
--- a/Pinta.Tools/Editable/Shapes/GeneratedPoint.cs
+++ b/Pinta.Tools/Editable/Shapes/GeneratedPoint.cs
@@ -26,23 +26,22 @@
using Pinta.Core;
-namespace Pinta.Tools
+namespace Pinta.Tools;
+
+public sealed class GeneratedPoint
{
- public class GeneratedPoint
- {
- //Note: not using get/set because this is used in time-critical code that is sped up without it.
- public PointD Position;
- public int ControlPointIndex;
+ //Note: not using get/set because this is used in time-critical code that is sped up without it.
+ public PointD Position;
+ public int ControlPointIndex;
- ///
- /// A wrapper class for a PointD with knowledge of its previous ControlPoint.
- ///
- /// The position of the PointD on the Canvas.
- /// The index of the previous ControlPoint to the new GeneratedPoint.
- public GeneratedPoint (PointD passedPosition, int passedControlPointIndex)
- {
- Position = passedPosition;
- ControlPointIndex = passedControlPointIndex;
- }
+ ///
+ /// A wrapper class for a PointD with knowledge of its previous ControlPoint.
+ ///
+ /// The position of the PointD on the Canvas.
+ /// The index of the previous ControlPoint to the new GeneratedPoint.
+ public GeneratedPoint (PointD passedPosition, int passedControlPointIndex)
+ {
+ Position = passedPosition;
+ ControlPointIndex = passedControlPointIndex;
}
}