Value stored for (x,y,z)'s grid cell, or -1 if absent.
(x, y, z)
| 77 | const s = this._slot(oqx[i], oqy[i], oqz[i]); |
| 78 | this._qx[s] = oqx[i]; this._qy[s] = oqy[i]; this._qz[s] = oqz[i]; |
| 79 | this._val[s] = oval[i]; |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | /** Value stored for (x,y,z)'s grid cell, or -1 if absent. */ |
| 84 | get(x, y, z) { |
| 85 | const q = this.quant; |
| 86 | const i = this._slot(Math.round(x * q), Math.round(y * q), Math.round(z * q)); |
no test coverage detected