3 #include "utilities/aligned/vector.h" 12 glm::vec3 sphere_point(
double z,
double theta);
13 glm::vec3 point_on_sphere(
double az,
double el);
19 : z(std::uniform_real_distribution<float>(-1, 1)(engine))
20 , theta(std::uniform_real_distribution<float>(-M_PI,
23 inline float get_z()
const {
return z; }
24 inline float get_theta()
const {
return theta; }
32 glm::vec3 random_unit_vector(t& engine) {
34 return sphere_point(rng.get_z(), rng.get_theta());
37 util::aligned::vector<glm::vec3> get_random_directions(
size_t num);
Definition: azimuth_elevation.h:15
Definition: capsule_base.h:9