UNPKG

@spearwolf/twopoint5d

Version:

Create 2.5D realtime graphics and pixelart with WebGL and three.js

13 lines 386 B
import { AABB2 } from './AABB2.js'; export class Map2DTileCoords { static createID(x, y) { return `y${y.toString(16)}${x < 0 ? '' : 'x'}${x.toString(16)}`; } constructor(x, y, view) { this.id = Map2DTileCoords.createID(x, y); this.x = x; this.y = y; this.view = view ?? new AABB2(); } } //# sourceMappingURL=Map2DTileCoords.js.map