Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Util.Geometry.RectangleD

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
Contains(double x, double y)
Returns true if the specified point is contained within the rectangle (or lies exactly on a boundary).
boolReturns true if the two rectangles have identical coordinates and sizes.
bool
Equals(object obj)
  • Overrides: object.Equals(object)
Compares a rectangle to any other object.
int
  • Overrides: object.GetHashCode()
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.
RectangleFConverts this rectangle to a RectangleF.
string
  • Overrides: object.ToString()
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

RectangleDMoves the rectangle’s position by the specified offset.
RectangleD
boolCompares two rectangles for equality using RectangleD.Equals(RectangleD).
RectangleD Converts the specified System.Drawing.Rectangle structure to a RectangleD structure.
boolCompares two rectangles for inequality using RectangleD.Equals(RectangleD).
RectangleD
operator*(RectangleD rect, double scale)
Scales the rectangle’s position and size by the specified factor.
RectangleD
operator*(double scale, RectangleD rect)
RectangleDMoves the rectangle’s position by the negation of the specified offset.

Instance properties

doubleGets the Y coordinate of the maximal-Y boundary.
PointDReturns the bottom-left point of this rectangle.
PointDReturns the bottom-right point of this rectangle.
boolReturns true if this rectangle has zero extent.
doubleGets the X coordinate of the minimal-X boundary.
doubleGets the X coordinate of the maximal-X boundary.
doubleGets the X coordinate of the minimal-Y boundary.
PointDReturns the top-left point of this rectangle.
PointDReturns the top-right point of this rectangle.

Static fields

RectangleDRepresents an instance of the RectangleD class with its members uninitialized.

Instance fields

doubleThe height of the rectangle.
doubleThe width of the rectangle.
doubleX coordinate of the minimal-X boundary
doubleY coordinate of the minimal-Y boundary