Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Revert "add center property to rectangle"
Browse files Browse the repository at this point in the history
This reverts commit bdd54d3.
  • Loading branch information
tocsoft committed Jun 9, 2017
1 parent 0c5e364 commit 04e70a1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions src/SixLabors.Core/Primitives/Rectangle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,6 @@ public Size Size
}
}

/// <summary>
/// Gets the coordinates of the center of the rectangular region represented by this <see cref="RectangleF"/>.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public Point Center
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => new Point(this.X + (this.Width / 2), this.Y + (this.Height / 2));
}

/// <summary>
/// Gets a value indicating whether this <see cref="Rectangle"/> is empty.
/// </summary>
Expand Down
10 changes: 0 additions & 10 deletions src/SixLabors.Core/Primitives/RectangleF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,6 @@ public SizeF Size
}
}

/// <summary>
/// Gets the coordinates of the center of the rectangular region represented by this <see cref="RectangleF"/>.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public PointF Center
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => new PointF(this.X + (this.Width / 2), this.Y + (this.Height / 2));
}

/// <summary>
/// Gets a value indicating whether this <see cref="RectangleF"/> is empty.
/// </summary>
Expand Down

0 comments on commit 04e70a1

Please sign in to comment.