Merge branch 'z1dev-master'
This commit is contained in:
@@ -79,6 +79,26 @@ namespace FlaxEngine
|
||||
/// </summary>
|
||||
public Float2 UpperRight => new Float2(Location.X + Size.X, Location.Y);
|
||||
|
||||
/// <summary>
|
||||
/// Gets position of the bottom right corner of the rectangle
|
||||
/// </summary>
|
||||
public Float2 LowerRight => Location + Size;
|
||||
|
||||
/// <summary>
|
||||
/// Gets position of the bottom left corner of the rectangle
|
||||
/// </summary>
|
||||
public Float2 LowerLeft => new Float2(Location.X, Location.Y + Size.Y);
|
||||
|
||||
/// <summary>
|
||||
/// Gets position of the upper left corner of the rectangle
|
||||
/// </summary>
|
||||
public Float2 TopLeft => Location;
|
||||
|
||||
/// <summary>
|
||||
/// Gets position of the upper right corner of the rectangle
|
||||
/// </summary>
|
||||
public Float2 TopRight => new Float2(Location.X + Size.X, Location.Y);
|
||||
|
||||
/// <summary>
|
||||
/// Gets position of the bottom right corner of the rectangle
|
||||
/// </summary>
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user