Assembly: VRage.Math.dll

public struct Rectangle: IEquatable<Rectangle>

Defines a rectangle.

Fields

Member Description
Height Specifies the height of the rectangle.
Width Specifies the width of the rectangle.
X Specifies the x-coordinate of the rectangle.
Y Specifies the y-coordinate of the rectangle.

Properties

Member Description
Bottom Returns the y-coordinate of the bottom of the rectangle.
Center Gets the Point that specifies the center of the rectangle.
Left Returns the x-coordinate of the left side of the rectangle.
Location Gets or sets the upper-left value of the Rectangle.
Right Returns the x-coordinate of the right side of the rectangle.
Top Returns the y-coordinate of the top of the rectangle.

Constructors

Member Description
Rectangle(int, int, int, int)

Methods

Member Description
static Intersect(Rectangle, Rectangle) Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
static Intersect(ref Rectangle, ref Rectangle, out Rectangle) Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
static Union(Rectangle, Rectangle) Creates a new Rectangle that exactly contains two other rectangles.
static Union(ref Rectangle, ref Rectangle, out Rectangle) Creates a new Rectangle that exactly contains two other rectangles.
Contains(int, int) Determines whether this Rectangle contains a specified point represented by its x- and y-coordinates.
Contains(Point) Determines whether this Rectangle contains a specified Point.
Contains(ref Point, out bool) Determines whether this Rectangle contains a specified Point.
Contains(Rectangle) Determines whether this Rectangle entirely contains a specified Rectangle.
Contains(ref Rectangle, out bool) Determines whether this Rectangle entirely contains a specified Rectangle.
Equals(Rectangle) Determines whether the specified Object is equal to the Rectangle.
Equals(object) Returns a value that indicates whether the current instance is equal to a specified object.
GetHashCode() Gets the hash code for this object.
Inflate(int, int) Pushes the edges of the Rectangle out by the horizontal and vertical values specified.
Intersects(Rectangle) Determines whether a specified Rectangle intersects with this Rectangle.
Intersects(ref Rectangle, out bool) Determines whether a specified Rectangle intersects with this Rectangle.
Offset(Point) Changes the position of the Rectangle.
Offset(int, int) Changes the position of the Rectangle.
ToString() Retrieves a string representation of the current object.

Implements: