implement path tracing

This commit is contained in:
liamcottle 2025-03-17 23:17:03 +13:00
parent 85d82b13c1
commit 9e3171bd78
5 changed files with 131 additions and 0 deletions

11
src/random_utils.js Normal file
View file

@ -0,0 +1,11 @@
class RandomUtils {
static getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
}
export default RandomUtils;