(pxi, pyi, dxi, dyi, dzi)
| 47 | } |
| 48 | |
| 49 | addPoint(pxi, pyi, dxi, dyi, dzi) { |
| 50 | let plen = this._px.length; |
| 51 | let dlen = this._dp.length; |
| 52 | this._px[plen] = pxi; |
| 53 | this._py[plen] = pyi; |
| 54 | this._dp[dlen] = dxi; |
| 55 | this._dp[dlen + 1] = dyi; |
| 56 | if (this._dimensions === 3) { |
| 57 | this._dp[dlen + 2] = dzi; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | getPoint(index) { |
| 62 | if (index < 0 || index >= this._px.length) |
no outgoing calls
no test coverage detected