Skip to content

Commit

Permalink
I cannot code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Oct 17, 2023
1 parent d811bbf commit f60b310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librapid/include/librapid/math/vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ namespace librapid {
Vector<T, 3> randomPointInSphere() {
// Adapted from https://karthikkaranth.me/blog/generating-random-points-in-a-sphere/

auto u = lrc::random<T>(); // [0, 1)
auto v = lrc::random<T>(); // [0, 1)
auto u = ::librapid::random<T>(); // [0, 1)
auto v = ::librapid::random<T>(); // [0, 1)
auto theta = u * 2 * PI;
auto phi = ::librapid::acos(2 * v - 1);
auto r = ::librapid::cbrt(random<T>());
Expand Down

0 comments on commit f60b310

Please sign in to comment.