Skip to content
Snippets Groups Projects
Commit 43a7e942 authored by Yoel's avatar Yoel
Browse files

Use the right distribution for a rand_vec3

parent 1a04caf6
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
namespace util { namespace util {
Vec3 rand_vec3() { Vec3 rand_vec3() {
return Vec3(dis0to1(gen), dis0to1(gen), dis0to1(gen)); return Vec3(disMinus1To1(gen), disMinus1To1(gen), disMinus1To1(gen));
} }
bool in_circle(const Vec3& v) { bool in_circle(const Vec3& v) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment