Loading...
Searching...
No Matches
Samplers.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  CubbyFlow
 

Functions

template<typename T >
Vector3< TCubbyFlow::UniformSampleCone (T u1, T u2, const Vector3< T > &axis, T angle)
 Returns randomly sampled direction within a cone.
 
template<typename T >
Vector3< TCubbyFlow::UniformSampleHemisphere (T u1, T u2, const Vector3< T > &normal)
 Returns randomly sampled point within a unit hemisphere.
 
template<typename T >
Vector3< TCubbyFlow::CosineWeightedSampleHemisphere (T u1, T u2, const Vector3< T > &normal)
 Returns weighted sampled point on a hemisphere.
 
template<typename T >
Vector3< TCubbyFlow::UniformSampleSphere (T u1, T u2)
 Returns randomly a point on a sphere.
 
template<typename T >
Vector2< TCubbyFlow::UniformSampleDisk (T u1, T u2)
 Returns randomly a point on a disk.