p5.js simulation: electrons on a sphere https://atomic.garden/p5/sphere/
Find a file
root 2acbfffc5f bugfix: velocity unbounded accel not projected
strange behaviour with velocity.mag()
sometimes it is unbounded, sometimes it remains bounded
the issue is `project_onto_plane` mutates its first argument

(1) mutating fn    yyyynnnn
(2) call fn        yynnyynn
(3) use fn retval  ynynynyn

(1) & (2)          yynnnnnn
[(1) & (2)] | (3)  yyynynyn

bounded?           yy-nyn-n

the case that we want is
(1) yes
(2) yes
(3) no

or this one
(1) no
(2) yes
(3) yes
2025-04-24 12:31:26 +00:00
lib sphere 2025-04-24 07:13:31 +00:00
.gitattributes image of earth 2025-04-24 07:31:23 +00:00
assets.json image of earth 2025-04-24 07:31:23 +00:00
atlas1.jpg image of earth 2025-04-24 07:31:23 +00:00
index.html sphere 2025-04-24 07:13:31 +00:00
sketch.js bugfix: velocity unbounded accel not projected 2025-04-24 12:31:26 +00:00