AStarXNA.GridCell.IsOrthagonalWith C# (CSharp) Method

IsOrthagonalWith() public method

public IsOrthagonalWith ( GridCell otherCell ) : bool
otherCell GridCell
return bool
        public bool IsOrthagonalWith(GridCell otherCell)
        {
            return Position.X == otherCell.Position.X || Position.Y == otherCell.Position.Y;
        }