Defines a rectangle.
More...
|
int | X |
| Specifies the x-coordinate of the rectangle. More...
|
|
int | Y |
| Specifies the y-coordinate of the rectangle. More...
|
|
int | Width |
| Specifies the width of the rectangle. More...
|
|
int | Height |
| Specifies the height of the rectangle. More...
|
|
|
int | Left [get] |
| Returns the x-coordinate of the left side of the rectangle. More...
|
|
int | Right [get] |
| Returns the x-coordinate of the right side of the rectangle. More...
|
|
int | Top [get] |
| Returns the y-coordinate of the top of the rectangle. More...
|
|
int | Bottom [get] |
| Returns the y-coordinate of the bottom of the rectangle. More...
|
|
Point | Location [get, set] |
| Gets or sets the upper-left value of the Rectangle. More...
|
|
Point | Center [get] |
| Gets the Point that specifies the center of the rectangle. More...
|
|
Defines a rectangle.
Definition at line 10 of file Rectangle.cs.
static VRageMath.Rectangle.Rectangle |
( |
| ) |
|
|
inlinestatic |
VRageMath.Rectangle.Rectangle |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
Initializes a new instance of Rectangle.
- Parameters
-
x | The x-coordinate of the rectangle. |
y | The y-coordinate of the rectangle. |
width | Width of the rectangle. |
height | Height of the rectangle. |
Definition at line 108 of file Rectangle.cs.
bool VRageMath.Rectangle.Contains |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
Determines whether this Rectangle contains a specified point represented by its x- and y-coordinates.
- Parameters
-
x | The x-coordinate of the specified point. |
y | The y-coordinate of the specified point. |
Definition at line 176 of file Rectangle.cs.
bool VRageMath.Rectangle.Contains |
( |
Point |
value | ) |
|
|
inline |
void VRageMath.Rectangle.Contains |
( |
ref Point |
value, |
|
|
out bool |
result |
|
) |
| |
|
inline |
Determines whether this Rectangle contains a specified Point.
- Parameters
-
value | The Point to evaluate. |
result | [OutAttribute] true if the specified Point is contained within this Rectangle; false otherwise. |
Definition at line 200 of file Rectangle.cs.
bool VRageMath.Rectangle.Contains |
( |
Rectangle |
value | ) |
|
|
inline |
void VRageMath.Rectangle.Contains |
( |
ref Rectangle |
value, |
|
|
out bool |
result |
|
) |
| |
|
inline |
bool VRageMath.Rectangle.Equals |
( |
Rectangle |
other | ) |
|
|
inline |
Determines whether the specified Object is equal to the Rectangle.
- Parameters
-
other | The Object to compare with the current Rectangle. |
Definition at line 355 of file Rectangle.cs.
override bool VRageMath.Rectangle.Equals |
( |
object |
obj | ) |
|
|
inline |
Returns a value that indicates whether the current instance is equal to a specified object.
- Parameters
-
obj | Object to make the comparison with. |
Definition at line 367 of file Rectangle.cs.
override int VRageMath.Rectangle.GetHashCode |
( |
| ) |
|
|
inline |
Gets the hash code for this object.
Definition at line 387 of file Rectangle.cs.
void VRageMath.Rectangle.Inflate |
( |
int |
horizontalAmount, |
|
|
int |
verticalAmount |
|
) |
| |
|
inline |
Pushes the edges of the Rectangle out by the horizontal and vertical values specified.
- Parameters
-
horizontalAmount | Value to push the sides out by. |
verticalAmount | Value to push the top and bottom out by. |
Definition at line 164 of file Rectangle.cs.
Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
- Parameters
-
Definition at line 251 of file Rectangle.cs.
Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
- Parameters
-
value1 | The first Rectangle to compare. |
value2 | The second Rectangle to compare. |
result | [OutAttribute] The area where the two first parameters overlap. |
Definition at line 283 of file Rectangle.cs.
bool VRageMath.Rectangle.Intersects |
( |
Rectangle |
value | ) |
|
|
inline |
void VRageMath.Rectangle.Intersects |
( |
ref Rectangle |
value, |
|
|
out bool |
result |
|
) |
| |
|
inline |
Determines whether a specified Rectangle intersects with this Rectangle.
- Parameters
-
value | The Rectangle to evaluate |
result | [OutAttribute] true if the specified Rectangle intersects with this one; false otherwise. |
Definition at line 242 of file Rectangle.cs.
void VRageMath.Rectangle.Offset |
( |
Point |
amount | ) |
|
|
inline |
void VRageMath.Rectangle.Offset |
( |
int |
offsetX, |
|
|
int |
offsetY |
|
) |
| |
|
inline |
Changes the position of the Rectangle.
- Parameters
-
offsetX | Change in the x-position. |
offsetY | Change in the y-position. |
Definition at line 154 of file Rectangle.cs.
Compares two rectangles for inequality.
- Parameters
-
a | Source rectangle. |
b | Source rectangle. |
Definition at line 132 of file Rectangle.cs.
Compares two rectangles for equality.
- Parameters
-
a | Source rectangle. |
b | Source rectangle. |
Definition at line 120 of file Rectangle.cs.
override string VRageMath.Rectangle.ToString |
( |
| ) |
|
|
inline |
Retrieves a string representation of the current object.
Definition at line 378 of file Rectangle.cs.
Creates a new Rectangle that exactly contains two other rectangles.
- Parameters
-
Definition at line 313 of file Rectangle.cs.
Creates a new Rectangle that exactly contains two other rectangles.
- Parameters
-
value1 | The first Rectangle to contain. |
value2 | The second Rectangle to contain. |
result | [OutAttribute] The Rectangle that must be the union of the first two rectangles. |
Definition at line 335 of file Rectangle.cs.
int VRageMath.Rectangle.Height |
Specifies the height of the rectangle.
Definition at line 27 of file Rectangle.cs.
int VRageMath.Rectangle.Width |
Specifies the width of the rectangle.
Definition at line 23 of file Rectangle.cs.
int VRageMath.Rectangle.X |
Specifies the x-coordinate of the rectangle.
Definition at line 15 of file Rectangle.cs.
int VRageMath.Rectangle.Y |
Specifies the y-coordinate of the rectangle.
Definition at line 19 of file Rectangle.cs.
int VRageMath.Rectangle.Bottom |
|
get |
Returns the y-coordinate of the bottom of the rectangle.
Definition at line 66 of file Rectangle.cs.
Point VRageMath.Rectangle.Center |
|
get |
Gets the Point that specifies the center of the rectangle.
Definition at line 93 of file Rectangle.cs.
int VRageMath.Rectangle.Left |
|
get |
Returns the x-coordinate of the left side of the rectangle.
Definition at line 33 of file Rectangle.cs.
Point VRageMath.Rectangle.Location |
|
getset |
int VRageMath.Rectangle.Right |
|
get |
Returns the x-coordinate of the right side of the rectangle.
Definition at line 44 of file Rectangle.cs.
int VRageMath.Rectangle.Top |
|
get |
Returns the y-coordinate of the top of the rectangle.
Definition at line 55 of file Rectangle.cs.
The documentation for this struct was generated from the following file: