Struct RectI
Represents an axis-aligned integer rectangle.
public readonly record struct RectI : IEquatable<RectI>
- Implements
- Inherited Members
Constructors
RectI(int, int, int, int)
public RectI(int x, int y, int width, int height)
Parameters
Properties
Bottom
public int Bottom { get; }
Property Value
Height
public int Height { get; init; }
Property Value
Left
public int Left { get; }
Property Value
Right
public int Right { get; }
Property Value
Top
public int Top { get; }
Property Value
Width
public int Width { get; init; }
Property Value
X
public int X { get; init; }
Property Value
Y
public int Y { get; init; }
Property Value
Methods
Contains(int, int)
public bool Contains(int x, int y)
Parameters
Returns
Contains(Int2)
public bool Contains(Int2 point)
Parameters
pointInt2
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.