Microsoft.Xna.Framework.PointExtensions.WorldLocationToConsole C# (CSharp) Method

WorldLocationToConsole() public static method

Translates a pixel to where it appears on a console cell.
public static WorldLocationToConsole ( this point, int cellWidth, int cellHeight ) : Point
point this The current world position.
cellWidth int The width of a cell in pixels.
cellHeight int The height of a cell in pixels.
return Point
        public static Point WorldLocationToConsole(this Point point, int cellWidth, int cellHeight)
        {
            return new Point(point.X / cellWidth, point.Y / cellHeight);
        }