terug oude semi kapotte versie

This commit is contained in:
BuildTools
2020-08-01 16:00:52 +02:00
parent fb67866354
commit 60795e447d
52 changed files with 168 additions and 167 deletions

View File

@@ -44,16 +44,26 @@ namespace Logica
public PolygonPunten ScalePolygon(PolygonPunten polygon, double scaleX, double scaleY, double offsetX = 180, double offsetY = 180)
{
double maxX = polygon.MaximumX;
double maxY = polygon.MaximumY;
double maxX = polygon.MaximumX - polygon.MinimumX;
double maxY = polygon.MaximumY - polygon.MinimumY;
double minX = polygon.MinimumX;
double minY = polygon.MinimumY;
List<Punt> returnWaarde = new List<Punt>();
foreach (Punt punt in polygon.Punten)
{
Punt x = ScalePoint(scaleX, scaleY,punt, maxX, maxY, offsetX, offsetY);
x.Naam = punt.Naam;
returnWaarde.Add(x);
//Punt x = ScalePoint(scaleX, scaleY, punt, maxX, maxY, offsetX, offsetY);
double x = punt.X - minX;
x /= maxX;
x *= scaleX;
x += offsetX;
double y = punt.Y - minY;
y /= maxY;
y *= scaleY;
y += offsetY;
returnWaarde.Add(new Punt(x, y, punt.Naam));
//x.Naam = punt.Naam;
//returnWaarde.Add(x);
}
return new PolygonPunten(returnWaarde, polygon.Naam);
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1 +1 @@
49af496af2f1df8211268fd2e6c93944e9ef3197
19911095ba0015434cd13d58c152e22fd47e8005

Binary file not shown.

Binary file not shown.