| RectangleI Class |
Namespace: Slash.Math.Geometry.Rectangles
The RectangleI type exposes the following members.
| Name | Description | |
|---|---|---|
| RectangleI(RectangleI) |
Copy contructor.
| |
| RectangleI(Vector2I, Vector2I) |
Constructs a new rectangle with the specified position and size.
| |
| RectangleI(Int32, Int32, Vector2I) |
Constructs a new rectangle with the specified position and size.
| |
| RectangleI(Vector2I, Int32, Int32) |
Constructs a new rectangle with the specified position and size.
| |
| RectangleI(Int32, Int32, Int32, Int32) |
Constructs a new rectangle with the specified position and size.
|
| Name | Description | |
|---|---|---|
| Area |
Gets the area of this rectangle, the product of its width and height.
| |
| Bottom |
Gets the y-component of the bottom side of this rectangle.
| |
| BottomLeft |
Gets the position of the bottom left corner of this rectangle.
| |
| BottomRight |
Gets the position of the bottom right corner of this rectangle.
| |
| Center |
Gets the position of the center of this rectangle.
| |
| ExactCenter |
Gets the exact position of the center of this rectangle.
| |
| Height |
Gets or sets the height of this rectangle.
| |
| Left |
Gets the x-component of the left side of this rectangle.
| |
| Position |
Gets the position of this rectangle.
| |
| Right |
Gets the x-component of the right side of this rectangle.
| |
| Size |
Gets or sets the size of this rectangle, its width and height.
| |
| Top |
Gets the y-component of the top side of this rectangle.
| |
| TopLeft |
Gets the position of the top left corner of this rectangle.
| |
| TopRight |
Gets the position of the top right corner of this rectangle.
| |
| Width |
Gets or sets the width of this rectangle.
| |
| X |
Gets or sets the x-component of the position of this rectangle.
| |
| XMax |
Maximum x-value of this rectangle.
| |
| XMin |
Minimum x-value of this rectangle.
| |
| Y |
Gets or sets the y-component of the position of this rectangle.
| |
| YMax |
Maximum y-value of this rectangle.
| |
| YMin |
Minimum x-value of this rectangle.
|
| Name | Description | |
|---|---|---|
| CalculateClosestPoint(Vector2I) |
Calculates the point closest to the specified position on the border of this rectangle.
If this rectangle contains the specified position, the position is returned instead.
| |
| CalculateClosestPoint(Vector2F, Vector2F) |
Calculates the point closest to the specified position on the border of this rectangle
with width threshold.
If this rectangle contains the specified position, the position is returned instead.
| |
| CalculateClosestPoint(Vector2I, Vector2I) |
Calculates the point closest to the specified position on the border of this rectangle
with width threshold.
If this rectangle contains the specified position, the position is returned instead.
| |
| Contains(RectangleI) |
Checks whether this rectangle entirely encompasses the passed other one.
| |
| Contains(Vector2I) |
Checks whether this rectangle contains the point denoted by the specified vector.
| |
| Equals(Object) |
Compares the passed rectangle to this one for equality.
(Overrides ObjectEquals(Object).) | |
| Equals(RectangleI) |
Compares the passed rectangle to this one for equality.
| |
| FromBounds |
Creates a new rectangle from the specified bounds.
| |
| GetHashCode |
Gets the hash code of this rectangle.
(Overrides ObjectGetHashCode.) | |
| Intersect |
Intersects this rectangle with the specified one, creating an intersection rectangle.
| |
| Intersects |
Checks whether this rectangle at least partially intersects the passed other one.
| |
| Span |
Calculates the rectangle which spans the specified positions.
| |
| ToString |
Returns a String representation of this rectangle.
(Overrides ObjectToString.) | |
| Union |
Creates the union of this rectangle and the specified other one.
|
| Name | Description | |
|---|---|---|
| ToRect |
Converts the specified framework rectangle to an Unity rectangle.
(Defined by MathConversionExtensions.) |