worked on nav-mesh
added dijkstra support for nav mesh some minor changes to distributions minor fixes
This commit is contained in:
@@ -1,4 +1,28 @@
|
||||
#ifndef CONST_H
|
||||
#define CONST_H
|
||||
#ifndef DISTRIBUTION_CONST_H
|
||||
#define DISTRIBUTION_CONST_H
|
||||
|
||||
#endif // CONST_H
|
||||
|
||||
namespace Distribution {
|
||||
|
||||
/** uniform distribution */
|
||||
template <typename T> class Const {
|
||||
|
||||
const T val;
|
||||
|
||||
public:
|
||||
|
||||
/** ctor */
|
||||
Const(const T val) : val(val) {
|
||||
|
||||
}
|
||||
|
||||
/** get a constant value */
|
||||
T draw() {
|
||||
return val;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // DISTRIBUTION_CONST_H
|
||||
|
||||
Reference in New Issue
Block a user