Synced
RectInt
Section titled “RectInt”
- Represents an axis-aligned rectangle with integer coordinates. Coordinates assume Y-axis points upwards (top smaller than bottom).
Required contracts
Section titled “Required contracts”API: scripting
Implements: System.IEquatable<InnoEngine.Mathematics.RectInt>
Inherits: System.ValueType
Project: Inno.Core.Mathematics
Scope: Runtime
Declaration
Section titled “Declaration”public struct InnoEngine.Mathematics.RectInt : System.IEquatable<InnoEngine.Mathematics.RectInt>Members
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | RectInt.Constructor | Creates a validated rect int instance. |
| Fields | RectInt.height | The horizontal or first component. |
| Fields | RectInt.width | The horizontal or first component. |
| Fields | RectInt.x | The horizontal or first component. |
| Fields | RectInt.y | The horizontal or first component. |
| Methods | RectInt.Contains(InnoEngine.Mathematics.RectInt) | Checks if this rectangle fully contains another rectangle. |
| Methods | RectInt.Contains(InnoEngine.Mathematics.Vector2Int) | Determines whether current state contains the requested value value. |
| Methods | RectInt.Contains(System.Int32,System.Int32) | Checks if this rectangle contains a point. |
| Methods | RectInt.Equals(InnoEngine.Mathematics.RectInt) | Determines whether this value and the supplied value represent the same logical state. |
| Methods | RectInt.Equals(System.Object) | Determines whether this value and the supplied value represent the same logical state. |
| Methods | RectInt.FromMinMax | Creates a rectangle from minimum and maximum boundaries; point containment excludes the maximum boundary. |
| Methods | RectInt.GetHashCode | Computes a hash code consistent with the implemented equality contract. |
| Methods | RectInt.op_Addition | Adds the supplied values component by component. |
| Methods | RectInt.op_Equality | Determines whether the supplied values are equal under the type’s equality tolerance. |
| Methods | RectInt.op_Implicit(InnoEngine.Mathematics.RectInt)~InnoEngine.Mathematics.Vector4Int | Converts the supplied value to T:InnoEngine.Mathematics.Vector4Int. |
| Methods | RectInt.op_Implicit(InnoEngine.Mathematics.RectInt)~System.Drawing.Rectangle | Converts the supplied value to T:System.Drawing.Rectangle. |
| Methods | RectInt.op_Implicit(InnoEngine.Mathematics.Vector4Int)~InnoEngine.Mathematics.RectInt | Converts the supplied value to T:InnoEngine.Mathematics.RectInt. |
| Methods | RectInt.op_Implicit(System.Drawing.Rectangle)~InnoEngine.Mathematics.RectInt | Converts the supplied value to T:InnoEngine.Mathematics.RectInt. |
| Methods | RectInt.op_Inequality | Determines whether the supplied values differ under the type’s equality tolerance. |
| Methods | RectInt.op_Subtraction | Subtracts or negates the supplied value component by component. |
| Methods | RectInt.Overlaps | Checks if this rectangle overlaps another rectangle. |
| Methods | RectInt.ToString | Formats this value as a human-readable component list. |
| Methods | RectInt.TryIntersect | Attempts to intersect without changing state when the operation cannot complete. |
| Methods | RectInt.Union | Returns the smallest axis-aligned rectangle containing both supplied rectangles. |
| Properties | RectInt.bottom | Gets the scalar measurement or identity associated with the current state. |
| Properties | RectInt.center | Gets the midpoint derived from the rectangle bounds. |
| Properties | RectInt.left | Gets the scalar measurement or identity associated with the current state. |
| Properties | RectInt.max | Gets the maximum corner of this axis-aligned rectangle. |
| Properties | RectInt.min | Gets the minimum corner of this axis-aligned rectangle. |
| Properties | RectInt.right | Gets the scalar measurement or identity associated with the current state. |
| Properties | RectInt.size | Gets the width and height derived from the rectangle bounds. |
| Properties | RectInt.top | Gets the scalar measurement or identity associated with the current state. |