AStarXNA.GridCell.IsOrthagonalWith C# (CSharp) Метод

IsOrthagonalWith() публичный Метод

public IsOrthagonalWith ( GridCell otherCell ) : bool
otherCell GridCell
Результат bool
        public bool IsOrthagonalWith(GridCell otherCell)
        {
            return Position.X == otherCell.Position.X || Position.Y == otherCell.Position.Y;
        }