Table of Contents

Struct RectI

Namespace
TileWorld.Engine.Core.Math
Assembly
TileWorld.Engine.dll

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

x int
y int
width int
height int

Properties

Bottom

public int Bottom { get; }

Property Value

int

Height

public int Height { get; init; }

Property Value

int

Left

public int Left { get; }

Property Value

int

Right

public int Right { get; }

Property Value

int

Top

public int Top { get; }

Property Value

int

Width

public int Width { get; init; }

Property Value

int

X

public int X { get; init; }

Property Value

int

Y

public int Y { get; init; }

Property Value

int

Methods

Contains(int, int)

public bool Contains(int x, int y)

Parameters

x int
y int

Returns

bool

Contains(Int2)

public bool Contains(Int2 point)

Parameters

point Int2

Returns

bool

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.