Table of Contents

Struct CellPosition

Namespace
NonoSharp
Assembly
NonoSharp.dll

A record containing a cell's position.

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

Constructors

CellPosition(int, int)

Creates a CellPosition with the given coordinates.

public CellPosition(int x, int y)

Parameters

x int

X-coordinate of the cell

y int

Y-coordinate of the cell

Fields

X

X-coordinate of a cell on the puzzle grid.

public readonly int X

Field Value

int

Y

Y-coordinate of a cell on the puzzle grid.

public readonly int Y

Field Value

int

Methods

ToString()

Returns a string in the form of "(X, Y)".

public override string ToString()

Returns

string

String as above