cleaned up computation for hex bounding box

This commit is contained in:
Gavin McDonald
2018-07-06 12:00:58 -04:00
parent eb04c3f0eb
commit d3540ed117
3 changed files with 29 additions and 59 deletions

View File

@@ -145,9 +145,9 @@ export default class Tessellate {
drawMap(context) {
const scale = this.cartographer.getScale();
const upperLeft = new Point(0, 0);
const upperLeft = new Point(0, 0);
const upperRight = new Point(context.canvas.width, 0);
const lowerLeft = new Point(0, context.canvas.height);
const lowerLeft = new Point(0, context.canvas.height);
const lowerRight = new Point(context.canvas.width, context.canvas.height);
const tiles = this.cartographer.boundingBox(upperLeft, upperRight, lowerLeft, lowerRight);