This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.Rectangle
Malware edited this page Dec 21, 2018
·
51 revisions
← Index
Namespace: VRageMath
Assembly: VRage.Math.dll
Defines a rectangle.
| Member | Description |
|---|---|
int X |
Specifies the x-coordinate of the rectangle. |
int Y |
Specifies the y-coordinate of the rectangle. |
int Width |
Specifies the width of the rectangle. |
int Height |
Specifies the height of the rectangle. |
| Member | Description |
|---|---|
int Left |
Returns the x-coordinate of the left side of the rectangle. |
int Right |
Returns the x-coordinate of the right side of the rectangle. |
int Top |
Returns the y-coordinate of the top of the rectangle. |
int Bottom |
Returns the y-coordinate of the bottom of the rectangle. |
Point Location |
Gets or sets the upper-left value of the Rectangle. |
Point Center |
Gets the Point that specifies the center of the rectangle. |
| Member | Description |
|---|---|
void Offset(Point amount) |
Changes the position of the Rectangle. |
void Offset(int offsetX, int offsetY) |
Changes the position of the Rectangle. |
void Inflate(int horizontalAmount, int verticalAmount) |
Pushes the edges of the Rectangle out by the horizontal and vertical values specified. |
bool Contains(int x, int y) |
Determines whether this Rectangle contains a specified point represented by its x- and y-coordinates. |
bool Contains(Point value) |
Determines whether this Rectangle contains a specified Point. |
void Contains(ref Point value, ref bool result) |
Determines whether this Rectangle contains a specified Point. |
bool Contains(Rectangle value) |
Determines whether this Rectangle entirely contains a specified Rectangle. |
void Contains(ref Rectangle value, ref bool result) |
Determines whether this Rectangle entirely contains a specified Rectangle. |
bool Intersects(Rectangle value) |
Determines whether a specified Rectangle intersects with this Rectangle. |
void Intersects(ref Rectangle value, ref bool result) |
Determines whether a specified Rectangle intersects with this Rectangle. |
static Rectangle Intersect(Rectangle value1, Rectangle value2)
|
Creates a Rectangle defining the area where one rectangle overlaps with another rectangle. |
static void Intersect(ref Rectangle value1, ref Rectangle value2, ref Rectangle result)
|
Creates a Rectangle defining the area where one rectangle overlaps with another rectangle. |
static Rectangle Union(Rectangle value1, Rectangle value2)
|
Creates a new Rectangle that exactly contains two other rectangles. |
static void Union(ref Rectangle value1, ref Rectangle value2, ref Rectangle result)
|
Creates a new Rectangle that exactly contains two other rectangles. |
bool Equals(Rectangle other) |
Determines whether the specified Object is equal to the Rectangle. |
bool Equals(Object obj) |
Returns a value that indicates whether the current instance is equal to a specified object. |
string ToString() |
Retrieves a string representation of the current object. |
int GetHashCode() |
Gets the hash code for this object. |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!