Skip to content

Commit

Permalink
added convenience constructor back to rect
Browse files Browse the repository at this point in the history
  • Loading branch information
sirati committed Oct 13, 2019
1 parent 089b4f7 commit e7959eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ProgressionUtil/Util/Rect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ public Rect(Coordinate @base, ushort width, ushort height)
Height = height;
}

public Rect(ushort baseX, ushort baseY, ushort width, ushort height) : this(new Coordinate(baseX, baseY), width, height)
{
}

public Coordinate Base { get; }
public ushort Width { get; }
public ushort Height { get; }
Expand Down

0 comments on commit e7959eb

Please sign in to comment.