std:std.geom.Rect<T>

Struct Rect<T>

The Rect class provides support for manipulating rectangular regions.

Fields
max Maximum rect coordinates.
min Minimum rect coordinates.
Constructors
New
Properties
Bottom The maximum X coordinate.
BottomLeft The bottom-left of the rect.
BottomRight The bottom-right of the rect.
Center The center of the rect. (read only)
Empty True if Right<=Left or Bottom<=Top. (read only)
Height The height of the rect. (read only)
Left The minimum X coordinate.
Origin The top-left of the rect.
Right The maximum X coordinate.
Size The width and height of the rect.
Top The minimum Y coordinate.
TopLeft The top-left of the rect.
TopRight The top-right of the rect.
Width The width of the rect. (read only)
X The minimum X coordinate.
Y The minimum Y coordinate.
Methods
Operator & Computes the intersection of the rect with another rect and returns the result.
Operator &= Intersects the rect with another rect.
Operator * Multiples the rect by a vector and returns the result.
Operator *= Multiples the rect by a vector.
Operator + Adds another rect to the rect and returns the result.
Operator += Adds another rect to the rect.
Operator - Subtracts another rect from the rect and returns the result.
Operator -= Subtracts another rect from the rect.
Operator / Divides the rect by a vector and returns the result.
Operator /= Divides the rect by a vector.
Centered Gets the rect centered within another rect.
Contains Checks if the rect contains a vector or another rect.
Intersects Checks if the rect intersects another rect.
ToString Gets a string describing the rect.
Operator To Converts the rect to a rect of a different type
Operator | Computes the union of the rest with another rect and returns the result.
Operator |= Unions the rect with another rect.