19 #include "Geometry/mathlib.h" decimal _phi
Global equatorial angle.
virtual vec3 getSample()
Return the sample.
unsigned int _nb_rays
Number of rays to launch.
decimal _theta
Global polar angle.
Sampler(const unsigned int &nbRays=0, const decimal &Theta=(decimal) M_PIDIV2, const decimal &Phi=(decimal) M_2PI)
Default constructor.
Sampler class and its sub-classes describe ray generators used in AcousticRayTracer. In these classes :
Sampler(const Sampler &other)
Copy constructors.
Sampler(Sampler *sampler)
base_vec3< decimal > vec3
decimal getPhi() const
Get/Set the equatorial polar angle.
virtual unsigned int computeDiffractionNbr(const decimal &theta)
Return the number of rays to launch after a diffraction event.
virtual void setNbRays(const unsigned int &nbRays)
virtual bool isAcceptableSample(vec3 v)
Return true for an acceptable sample.
virtual unsigned int getNbRays() const
Get/Set the number of rays to launch.
void setTheta(const decimal &Theta)
virtual ~Sampler()
Destructor.
decimal getTheta() const
Get/Set the polar angle.
void setPhi(const decimal &Phi)
virtual Sampler * Clone()
Clone a sample.
virtual void init()
Initialize the sample.