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;
        }