Higher FPS! (#19)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Cartographer from './cartographer.js';
|
||||
|
||||
import {rangeInclusive, sqrt2} from './utils.js';
|
||||
import {rangeInclusive, invSqrt2, sqrt2} from './utils.js';
|
||||
|
||||
import Square from './square.js';
|
||||
import Point from './point.js';
|
||||
@@ -40,11 +40,11 @@ export default class CartographerPointyXY extends Cartographer {
|
||||
}
|
||||
|
||||
maxWidth() {
|
||||
return this.minWidth() * sqrt2;
|
||||
return this.scale * 2;
|
||||
}
|
||||
|
||||
minWidth() {
|
||||
return this.scale * 2;
|
||||
return this.maxWidth() * invSqrt2;
|
||||
}
|
||||
|
||||
horizontalOverhang() {
|
||||
|
||||
Reference in New Issue
Block a user