MEPP2 Project
Public Types | Public Member Functions | Protected Member Functions | List of all members
LightSampler Class Reference

#include <lightsampler.hpp>

Collaboration diagram for LightSampler:
Collaboration graph

Public Types

enum  Method { NAIVE }
 

Public Member Functions

 LightSampler ()
 
virtual ~LightSampler ()
 
void sample (MatrixX3d &samples, int n, double phi_min=0., double phi_max=M_PI, Method method=NAIVE, bool use_random=true) const
 
void sample_to_global (MatrixX3d &samples, int n, const Vector3d &up=Vector3d::UnitZ(), double phi_min=0., double phi_max=M_PI, bool use_random=true, Method method=NAIVE) const
 
void to_global (const MatrixX3d &local, MatrixX3d &global, const Vector3d &up=Vector3d::UnitZ()) const
 

Protected Member Functions

void sample_naive (MatrixX3d &samples, int n, double phi_min=0., double phi_max=M_PI, bool use_random=true) const
 

Detailed Description

Definition at line 19 of file lightsampler.hpp.

Member Enumeration Documentation

◆ Method

Enumerator
NAIVE 

Definition at line 22 of file lightsampler.hpp.

Constructor & Destructor Documentation

◆ LightSampler()

LightSampler::LightSampler ( )
inline

Definition at line 25 of file lightsampler.hpp.

◆ ~LightSampler()

virtual LightSampler::~LightSampler ( )
inlinevirtual

Definition at line 26 of file lightsampler.hpp.

Member Function Documentation

◆ sample()

void LightSampler::sample ( MatrixX3d &  samples,
int  n,
double  phi_min = 0.,
double  phi_max = M_PI,
Method  method = NAIVE,
bool  use_random = true 
) const
inline

Definition at line 14 of file lightsampler.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sample_naive()

void LightSampler::sample_naive ( MatrixX3d &  samples,
int  n,
double  phi_min = 0.,
double  phi_max = M_PI,
bool  use_random = true 
) const
inlineprotected

Definition at line 74 of file lightsampler.inl.

Here is the caller graph for this function:

◆ sample_to_global()

void LightSampler::sample_to_global ( MatrixX3d &  samples,
int  n,
const Vector3d &  up = Vector3d::UnitZ(),
double  phi_min = 0.,
double  phi_max = M_PI,
bool  use_random = true,
Method  method = NAIVE 
) const
inline

Definition at line 32 of file lightsampler.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_global()

void LightSampler::to_global ( const MatrixX3d &  local,
MatrixX3d &  global,
const Vector3d &  up = Vector3d::UnitZ() 
) const
inline

Definition at line 47 of file lightsampler.inl.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: