Bricklayer.Common.World.Map.InBounds C# (CSharp) Method

InBounds() public method

Determines if a grid position is in the bounds of the map
public InBounds ( int x, int y, int z = 1 ) : bool
x int
y int
z int
return bool
        public bool InBounds(int x, int y, int z = 1)
        {
            return !(y < 1 || y >= Height - 1 || x < 1 || x >= Width - 1 || z > 1 || z < 0);
        }