Samplers.h File Reference
#include <Core/Vector/Vector2.h>
#include <Core/Vector/Vector3.h>
#include <Core/Utils/Samplers-Impl.h>
Go to the source code of this file.
Namespaces | |
CubbyFlow | |
Functions | |
template<typename T > | |
Vector3< T > | CubbyFlow::UniformSampleCone (T u1, T u2, const Vector3< T > &axis, T angle) |
Returns randomly sampled direction within a cone. More... | |
template<typename T > | |
Vector3< T > | CubbyFlow::UniformSampleHemisphere (T u1, T u2, const Vector3< T > &normal) |
Returns randomly sampled point within a unit hemisphere. More... | |
template<typename T > | |
Vector3< T > | CubbyFlow::CosineWeightedSampleHemisphere (T u1, T u2, const Vector3< T > &normal) |
Returns weighted sampled point on a hemisphere. More... | |
template<typename T > | |
Vector3< T > | CubbyFlow::UniformSampleSphere (T u1, T u2) |
Returns randomly a point on a sphere. More... | |
template<typename T > | |
Vector2< T > | CubbyFlow::UniformSampleDisk (T u1, T u2) |
Returns randomly a point on a disk. More... | |