Skip to content

Commit

Permalink
Add files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 22, 2016
1 parent 5981d0b commit bdbd778
Show file tree
Hide file tree
Showing 63 changed files with 12,011 additions and 0 deletions.
30 changes: 30 additions & 0 deletions blueNoise/hlib/constant.h
@@ -0,0 +1,30 @@
#ifndef _CONSTANT_H_
#define _CONSTANT_H_

#include <limits>

namespace hstd {


template<typename T>
inline T PI() {
return 3.1415926535897931;
};

template<>
inline float PI() {
return 3.1415927f;
};

template<>
inline double PI() {
return 3.1415926535897931;
};

static const float kPI = PI<float>();

static const float kINF = std::numeric_limits<float>::infinity();

} // namespace hstd

#endif // _CONSTANT_H_

0 comments on commit bdbd778

Please sign in to comment.