Alternative Rectangle function names for naming consistency.

This commit is contained in:
z1dev
2024-03-21 14:13:24 +01:00
parent 1a9f21396a
commit 7fef21218e
2 changed files with 44 additions and 0 deletions

View File

@@ -117,6 +117,30 @@ public:
return Location + Float2(Size.X, 0);
}
// Gets position of the bottom right corner of the rectangle
Float2 GetLowerRight() const
{
return Location + Size;
}
// Gets position of the bottom left corner of the rectangle
Float2 GetLowerLeft() const
{
return Location + Float2(0, Size.Y);
}
// Gets position of the upper left corner of the rectangle
Float2 GetTopLeft() const
{
return Location;
}
// Gets position of the upper right corner of the rectangle
Float2 GetTopRight() const
{
return Location + Float2(Size.X, 0);
}
// Gets position of the bottom right corner of the rectangle
Float2 GetBottomRight() const
{