[math] simplify algorithm finding greatest vector

This commit is contained in:
Liam Swayne 2024-04-16 17:50:32 -04:00 committed by Stephen Gutekanst
parent 6a09787496
commit 2b8bfcaa3e

View file

@ -47,10 +47,9 @@ pub fn Ray(comptime Vec3P: type) type {
}
} else if (v[1] > v[2]) {
return 1;
} else if (v[2] > v[0]) {
} else {
return 2;
}
return 0;
}
// Algorithm based on: