Table of Contents

Struct Int2

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

Represents a pair of integer coordinates or dimensions.

public readonly record struct Int2 : IEquatable<Int2>
Implements
Inherited Members

Constructors

Int2(int, int)

Represents a pair of integer coordinates or dimensions.

public Int2(int X, int Y)

Parameters

X int
Y int

Properties

One

public static Int2 One { get; }

Property Value

Int2

X

public int X { get; init; }

Property Value

int

Y

public int Y { get; init; }

Property Value

int

Zero

public static Int2 Zero { get; }

Property Value

Int2

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator +(Int2, Int2)

public static Int2 operator +(Int2 left, Int2 right)

Parameters

left Int2
right Int2

Returns

Int2

operator -(Int2, Int2)

public static Int2 operator -(Int2 left, Int2 right)

Parameters

left Int2
right Int2

Returns

Int2