cleaned up computation for hex bounding box
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user