Initial commit
This commit is contained in:
commit
7cdac8ded9
45 changed files with 7275 additions and 0 deletions
27
BlueNoise/RangeList.h
Normal file
27
BlueNoise/RangeList.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// $Id: RangeList.h,v 1.3 2006/01/12 16:39:19 zr Exp $
|
||||
|
||||
#include <vector>
|
||||
|
||||
typedef struct _RangeEntry {
|
||||
float min, max;
|
||||
} RangeEntry;
|
||||
|
||||
class RangeList {
|
||||
public:
|
||||
RangeEntry *ranges;
|
||||
int numRanges, rangesSize;
|
||||
|
||||
public:
|
||||
RangeList(float min, float max);
|
||||
~RangeList();
|
||||
|
||||
void reset(float min, float max);
|
||||
|
||||
void print();
|
||||
|
||||
void subtract(float min, float max);
|
||||
|
||||
private:
|
||||
void deleteRange(int pos);
|
||||
void insertRange(int pos, float min, float max);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue