src/scripts/particles/neutron.js
// Ensure neutrons that go off the screen are deleted
Ensure neutrons that go off the screen are deleted
Ensure neutrons that go off the screen are deleted
checkEdges() {
        return ((this.pos.x < 0) || (this.pos.y < 0) ||
                (this.pos.x > (this.simulation.nCols * RENDER.cellSize)) ||
                (this.pos.y > (this.simulation.nRows * RENDER.cellSize)));
    }
checkEdges ( ) { return ( ( this . pos . x < 0 ) || ( this . pos . y < 0 ) || ( this . pos . x > ( this . simulation . nCols * RENDER . cellSize ) ) || ( this . pos . y > ( this . simulation . nRows * RENDER . cellSize ) ) ) ; }
Ensure neutrons that go off the screen are deleted
Ensure neutrons that go off the screen are deleted