Go to the documentation of this file.
7 #ifndef INCLUDE_JET_SAMPLERS_H_
8 #define INCLUDE_JET_SAMPLERS_H_
101 template <
typename T>
106 #include "detail/samplers-inl.h"
108 #endif // INCLUDE_JET_SAMPLERS_H_
Vector3< T > cosineWeightedSampleHemisphere(T u1, T u2, const Vector3< T > &normal)
Returns weighted sampled point on a hemisphere.
Definition: advection_solver2.h:18
Vector3< T > uniformSampleSphere(T u1, T u2)
Returns randomly a point on a sphere.
2-D vector class.
Definition: vector2.h:24
3-D vector class.
Definition: vector3.h:25
Vector3< T > uniformSampleHemisphere(T u1, T u2, const Vector3< T > &normal)
Returns randomly sampled point within a unit hemisphere.
Vector3< T > uniformSampleCone(T u1, T u2, const Vector3< T > &axis, T angle)
Returns randomly sampled direction within a cone.
Vector2< T > uniformSampleDisk(T u1, T u2)
Returns randomly a point on a disk.