diff --git a/Pinta.Tools/Editable/Shapes/ControlPoint.cs b/Pinta.Tools/Editable/Shapes/ControlPoint.cs index 85e934ee1..90a1a05ba 100644 --- a/Pinta.Tools/Editable/Shapes/ControlPoint.cs +++ b/Pinta.Tools/Editable/Shapes/ControlPoint.cs @@ -26,28 +26,27 @@ using Pinta.Core; -namespace Pinta.Tools +namespace Pinta.Tools; + +public sealed class ControlPoint { - public class ControlPoint - { - //Note: not using get/set because this is used in time-critical code that is sped up without it. - public PointD Position; - public double Tension; + //Note: not using get/set because this is used in time-critical code that is sped up without it. + public PointD Position; + public double Tension; - /// - /// A wrapper class for a PointD with its own tension value. - /// - /// The position of the PointD on the Canvas. - /// The tension of the ControlPoint on the shape. - public ControlPoint (PointD passedPosition, double passedTension) - { - Position = passedPosition; - Tension = passedTension; - } + /// + /// A wrapper class for a PointD with its own tension value. + /// + /// The position of the PointD on the Canvas. + /// The tension of the ControlPoint on the shape. + public ControlPoint (PointD passedPosition, double passedTension) + { + Position = passedPosition; + Tension = passedTension; + } - public ControlPoint Clone () - { - return new ControlPoint (Position, Tension); - } + public ControlPoint Clone () + { + return new ControlPoint (Position, Tension); } }