Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.Rectangle

Malware edited this page Dec 21, 2018 · 51 revisions

Index #Rectangle Struct Namespace: VRageMath
Assembly: VRage.Math.dll
##Summary Defines a rectangle. ###Fields

Member Description
int X
int Y
int Width
int Height
###Properties
Member Description
--- ---
int Left
int Right
int Top
int Bottom
Point Location
Point Center
###Methods
Member Description
--- ---
void Offset(Point amount) Changes the position of the Rectangle.
void Offset(int offsetX, int offsetY)
void Inflate(int horizontalAmount, int verticalAmount)
bool Contains(int x, int y)
bool Contains(Point value) Determines whether this Rectangle contains a specified Point.
void Contains(ref Point value, ref bool result)
bool Contains(Rectangle value) Determines whether this Rectangle entirely contains a specified Rectangle.
void Contains(ref Rectangle value, ref bool result)
bool Intersects(Rectangle value) Determines whether a specified Rectangle intersects with this Rectangle.
void Intersects(ref Rectangle value, ref bool result)
Rectangle Intersect(Rectangle value1, Rectangle value2)
void Intersect(ref Rectangle value1, ref Rectangle value2, ref Rectangle result)
Rectangle Union(Rectangle value1, Rectangle value2)
void Union(ref Rectangle value1, ref Rectangle value2, ref Rectangle result)
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()
int GetHashCode()

Clone this wiki locally