Lagrange
Loading...
Searching...
No Matches
RaySampler< Scalar > Struct Template Reference

Classes

struct  Sample
 

Public Member Functions

 RaySampler (const Eigen::RowVector3< Scalar > &normal)
 
 RaySampler (RaySampler &&other) noexcept
 
 RaySampler (const RaySampler &)=delete
 
RaySampler & operator= (const RaySampler &)=delete
 
RaySampler & operator= (RaySampler &&)=delete
 
const Eigen::RowVector3< Scalar > & get_normal () const
 
Sample sample_cosine ()
 Bi-hemisphere sample via Malley's method: when bary reflection fires (u+v > 1), the direction is also negated, giving symmetric upper/lower coverage from one 4D draw.
 
Sample sample_vmf (const Eigen::RowVector3< Scalar > &axis, Scalar kappa)
 Sample a direction from a von Mises-Fisher lobe (mean axis, concentration kappa) on the full sphere, plus a folded barycentric point.
 

The documentation for this struct was generated from the following file: