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

Commit 04e70a1

Browse files
committed
Revert "add center property to rectangle"
This reverts commit bdd54d3.
1 parent 0c5e364 commit 04e70a1

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

src/SixLabors.Core/Primitives/Rectangle.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,6 @@ public Size Size
110110
}
111111
}
112112

113-
/// <summary>
114-
/// Gets the coordinates of the center of the rectangular region represented by this <see cref="RectangleF"/>.
115-
/// </summary>
116-
[EditorBrowsable(EditorBrowsableState.Never)]
117-
public Point Center
118-
{
119-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
120-
get => new Point(this.X + (this.Width / 2), this.Y + (this.Height / 2));
121-
}
122-
123113
/// <summary>
124114
/// Gets a value indicating whether this <see cref="Rectangle"/> is empty.
125115
/// </summary>

src/SixLabors.Core/Primitives/RectangleF.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,6 @@ public SizeF Size
110110
}
111111
}
112112

113-
/// <summary>
114-
/// Gets the coordinates of the center of the rectangular region represented by this <see cref="RectangleF"/>.
115-
/// </summary>
116-
[EditorBrowsable(EditorBrowsableState.Never)]
117-
public PointF Center
118-
{
119-
[MethodImpl(MethodImplOptions.AggressiveInlining)]
120-
get => new PointF(this.X + (this.Width / 2), this.Y + (this.Height / 2));
121-
}
122-
123113
/// <summary>
124114
/// Gets a value indicating whether this <see cref="RectangleF"/> is empty.
125115
/// </summary>

0 commit comments

Comments
 (0)