mirror of
https://github.com/bvanroll/cs-map-project.git
synced 2025-08-29 11:52:44 +00:00
canvas moe nog geflipped worden, en scaling shit. kga stoppe voor vandaag
This commit is contained in:
@@ -27,6 +27,12 @@ namespace Globals
|
||||
PolygonPunten.Add(new PolygonPunten(polygon, naam));
|
||||
}
|
||||
VindMaximumEnMinimum(PolygonPunten);
|
||||
bool sw = false;
|
||||
foreach (PolygonPunten p in PolygonPunten)
|
||||
{
|
||||
if (sw) p.Punten.Reverse();
|
||||
sw = !sw;
|
||||
}
|
||||
}
|
||||
|
||||
private void VindMaximumEnMinimum(List<PolygonPunten> polygonPunten)
|
||||
@@ -35,6 +41,7 @@ namespace Globals
|
||||
MaximumY = polygonPunten.Max(p => p.MaximumY);
|
||||
MinimumX = polygonPunten.Max(p => p.MinimumX);
|
||||
MinimumY = polygonPunten.Max(p => p.MinimumY);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user