public static void CalculateCoord(ref int TestX, ref int TestY, RenderInfo InfoMap) { TestX = (TestX - InfoMap.MapDimension.X) / InfoMap.SizeTileToPixel; TestY = (TestY - InfoMap.MapDimension.Y) / InfoMap.SizeTileToPixel; }