Struct Int2
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
Properties
One
public static Int2 One { get; }
Property Value
X
public int X { get; init; }
Property Value
Y
public int Y { get; init; }
Property Value
Zero
public static Int2 Zero { get; }
Property Value
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
Returns
operator -(Int2, Int2)
public static Int2 operator -(Int2 left, Int2 right)