gibbon.js
Version:
Actor/Component system for use with pixi.js.
16 lines • 473 B
JavaScript
export class GridRange {
minRow = 0;
minCol = 0;
maxRow = 0;
maxCol = 0;
constructor(minRow = 0, maxRow = 0, minCol = 0, maxCol = 0) {
this.minRow = minRow;
this.maxRow = maxRow;
this.minCol = minCol;
this.maxCol = maxCol;
}
equals(gr) {
return this.minRow === gr.minRow && this.maxRow === gr.maxRow && this.minCol === gr.maxCol && this.maxCol === gr.maxCol;
}
}
//# sourceMappingURL=grid-range.js.map