+ do files
This commit is contained in:
parent
d55182a8b0
commit
a038586edb
27 changed files with 1439 additions and 0 deletions
24
src/doVectorBounds.h
Normal file
24
src/doVectorBounds.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef _doVectorBounds_h
|
||||
#define _doVectorBounds_h
|
||||
|
||||
#include "doDistribParams.h"
|
||||
|
||||
template < typename EOT >
|
||||
class doVectorBounds : public doDistribParams< EOT >
|
||||
{
|
||||
public:
|
||||
doVectorBounds(EOT _min, EOT _max)
|
||||
: doDistribParams< EOT >(2)
|
||||
{
|
||||
assert(_min.size() > 0);
|
||||
assert(_min.size() == _max.size());
|
||||
|
||||
min() = _min;
|
||||
max() = _max;
|
||||
}
|
||||
|
||||
EOT& min(){return this->param(0);}
|
||||
EOT& max(){return this->param(1);}
|
||||
};
|
||||
|
||||
#endif // !_doVectorBounds_h
|
||||
Reference in a new issue