Summary
A double-precision rectangle struct, representing an axis-aligned rectangle.
Constructors
RectangleD(double x, double y, double width, double height) | Constructs a new rectangle. |
Instance methods
bool | | Returns true if the specified point is contained within the rectangle (or lies exactly on a boundary). |
bool | | Returns true if the two rectangles have identical coordinates and sizes. |
bool | | Compares a rectangle to any other object. |
int | | Returns a hash code for the rectangle. |
bool | |
Determines if this rectangle intersects with rect. |
RectangleD | |
Returns a new RectangleD in which the RectangleD.Width and/or RectangleD.Height are never
negative, by flipping the rectangle as necessary. |
bool | |
Checks if the perimeter of this rectangle intersects with that of rect. |
Rectangle | |
Converts the current RectangleD to a System.Drawing.Rectangle by rounding the
double-precision values to the nearest integer values. |
Rectangle | |
Returns the smallest System.Drawing.Rectangle that entirely contains the current RectangleD. |
RectangleF | | Converts this rectangle to a RectangleF. |
string | | Converts the rectangle to a string representation. |
Static methods
RectangleD | |
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
Operators
Instance properties
double | | Gets the Y coordinate of the maximal-Y boundary. |
PointD | | Returns the bottom-left point of this rectangle. |
PointD | | Returns the bottom-right point of this rectangle. |
bool | | Returns true if this rectangle has zero extent. |
double | | Gets the X coordinate of the minimal-X boundary. |
double | | Gets the X coordinate of the maximal-X boundary. |
double | | Gets the X coordinate of the minimal-Y boundary. |
PointD | | Returns the top-left point of this rectangle. |
PointD | | Returns the top-right point of this rectangle. |
Static fields
Instance fields
double | | The height of the rectangle. |
double | | The width of the rectangle. |
double | | X coordinate of the minimal-X boundary |
double | | Y coordinate of the minimal-Y boundary |