LynnaLab.TileGridViewer.IsInBounds C# (CSharp) Method

IsInBounds() public method

public IsInBounds ( int x, int y ) : bool
x int
y int
return bool
        public bool IsInBounds(int x, int y)
        {
            return (x >= 0 && y >= 0 && x < Width * TileWidth * Scale &&
                    y < Height * TileHeight * Scale);
        }