Universe.Framework.Services.GridRegion.PointIsInRegion C# (CSharp) Method

PointIsInRegion() public method

Returns whether the grid coordinate is inside of this region
public PointIsInRegion ( int x, int y ) : bool
x int
y int
return bool
        public bool PointIsInRegion (int x, int y)
        {
            if (x > RegionLocX && y > RegionLocY &&
                x < RegionLocX + RegionSizeX &&
                y < RegionLocY + RegionSizeY)
                return true;
            return false;
        }