Merge pull request #2601 from illumineawake/world-area-update-branch

This commit is contained in:
Owain van Brakel
2020-05-21 10:26:54 +02:00
committed by GitHub

View File

@@ -88,6 +88,15 @@ public class WorldArea
this.height = height;
}
public WorldArea(WorldPoint swLocation, WorldPoint neLocation)
{
this.x = swLocation.getX();
this.y = swLocation.getY();
this.plane = swLocation.getPlane();
this.width = neLocation.getX() - swLocation.getX();
this.height = neLocation.getY() - swLocation.getY();
}
/**
* Computes the shortest distance to another area.
*