Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: bool IsAdjacentTo(Square, bool)

  • Declared in: RT.Coordinates.Square

Declaration

public bool IsAdjacentTo(
    Square other,
    bool includeDiagonal = false
)

Summary

Determines whether two cells are orthogonally adjacent (not including diagonals).

Parameters

Squareother Other cell to compare against.
boolincludeDiagonal If true, diagonal neighbors are allowed.