-
Notifications
You must be signed in to change notification settings - Fork 124
VRageMath.Rectangle
← Index ← Namespace Index
public struct Rectangle: IEquatable<Rectangle>
Defines a rectangle.
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
Specifies the height of the rectangle.
Specifies the width of the rectangle.
Specifies the x-coordinate of the rectangle.
Specifies the y-coordinate of the rectangle.
Returns the y-coordinate of the bottom of the rectangle.
Gets the Point that specifies the center of the rectangle.
Returns the x-coordinate of the left side of the rectangle.
Gets or sets the upper-left value of the Rectangle.
Returns the x-coordinate of the right side of the rectangle.
Returns the y-coordinate of the top of the rectangle.
Rectangle(int x, int y, int width, int height)
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, out 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, out Rectangle result)
Creates a new Rectangle that exactly contains two other rectangles.
Determines whether this Rectangle contains a specified point represented by its x- and y-coordinates.
Determines whether this Rectangle contains a specified Point.
void Contains(ref Point value, out 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, out bool result)
Determines whether this Rectangle entirely contains a specified Rectangle.
Determines whether the specified Object is equal to the Rectangle.
Returns a value that indicates whether the current instance is equal to a specified object.
Gets the hash code for this object.
void Inflate(int horizontalAmount, int verticalAmount)
Pushes the edges of the Rectangle out by the horizontal and vertical values specified.
bool Intersects(Rectangle value)
Determines whether a specified Rectangle intersects with this Rectangle.
void Intersects(ref Rectangle value, out bool result)
Determines whether a specified Rectangle intersects with this Rectangle.
Changes the position of the Rectangle.
void Offset(int offsetX, int offsetY)
Changes the position of the Rectangle.
Retrieves a string representation of the current 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!