From 2ec5445c1683a2004ae3f1ec99fe30e59581a339 Mon Sep 17 00:00:00 2001 From: Lehonti Ramos Date: Wed, 9 Aug 2023 22:59:46 +0200 Subject: [PATCH] File-scoped namespace in `ControlPoint.cs` --- Pinta.Tools/Editable/Shapes/ControlPoint.cs | 39 ++++++++++----------- 1 file changed, 19 insertions(+), 20 deletions(-) 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); } }