🔮 Hypersphere in an n-Cube: Projection, Radial Shell Map and Volume Fractions (2D)
2D companion of the n-ball volume lab: a projection of random n-cube points coloured by membership of the n-ball, a heat map of radial density versus dimension, and Monte Carlo results checked against the Gamma function, recurrence and exact shell law.
⚙ Under the hood
2D companion of the n-ball volume lab: a projection of random n-cube points coloured by membership of the n-ball, a heat map of radial density versus dimension, and Monte Carlo results checked against the Gamma function, recurrence and exact shell law.
high dimensionshypersphereMonte CarloGamma functioncurse of dimensionalityBlender
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install