Blame view

legacy/rtsCubeSampler.h 656 Bytes
f1402849   dmayerich   renewed commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  /*This class returns a series of normalized vectors that sample the surface of a cube*/

  /*TODO:

  -)Implement random sampling

  -)Allow the user to provide a total number of samples

  

  */

  #ifndef RTSCUBESAMPLER_H

  #define RTSCUBESAMPLER_H

  

  #include <vector>

  #include "rtsMath.h"

  

  using namespace std;

  

  //definitions for sample types

  #define RTS_RANDOM_UNIFORM	0x00001001

  #define RTS_RANDOM_GAUSSIAN	0x00001002

  #define RTS_REGULAR			0x00001003

  

  class rtsCubeSampler

  {

  public:

  

  	unsigned int m_sample_type;

  	unsigned int m_squared_samples_per_side;

  	double max_angle;

  	vector3D m_main_vector;

  

  	vector<vector3D> Evaluate();

  };

  

  #endif