(two)
| 15512 | // in this particle that start with the same particle from the first particle with |
| 15513 | // that patched version. Does not recurse. |
| 15514 | patch(two) { |
| 15515 | const copy = this.clone() |
| 15516 | two.forEach(particle => { |
| 15517 | const hit = copy.getParticle(particle.getAtom(0)) |
| 15518 | if (hit) hit.destroy() |
| 15519 | }) |
| 15520 | copy.concat(two) |
| 15521 | return copy |
| 15522 | } |
| 15523 | getSparsity() { |
| 15524 | const particles = this.getSubparticles() |
| 15525 | const fields = this._getUnionNames() |
no test coverage detected