Skip to content

Commit

Permalink
Merge pull request #327 from Lehonti/improvement10
Browse files Browse the repository at this point in the history
File-scoped namespace for `GeneratedPoint.cs`
  • Loading branch information
cameronwhite authored Aug 10, 2023
2 parents c69351c + 183ab68 commit 16eef92
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions Pinta.Tools/Editable/Shapes/GeneratedPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/// <summary>
/// A wrapper class for a PointD with knowledge of its previous ControlPoint.
/// </summary>
/// <param name="passedPosition">The position of the PointD on the Canvas.</param>
/// <param name="passedControlPointIndex">The index of the previous ControlPoint to the new GeneratedPoint.</param>
public GeneratedPoint (PointD passedPosition, int passedControlPointIndex)
{
Position = passedPosition;
ControlPointIndex = passedControlPointIndex;
}
/// <summary>
/// A wrapper class for a PointD with knowledge of its previous ControlPoint.
/// </summary>
/// <param name="passedPosition">The position of the PointD on the Canvas.</param>
/// <param name="passedControlPointIndex">The index of the previous ControlPoint to the new GeneratedPoint.</param>
public GeneratedPoint (PointD passedPosition, int passedControlPointIndex)
{
Position = passedPosition;
ControlPointIndex = passedControlPointIndex;
}
}

0 comments on commit 16eef92

Please sign in to comment.