MathUtil: add PI constant

merge-requests/60/head
wwylele 2016-12-11 23:27:30 +07:00
parent 2a069e76a5
commit 55f5d0f777
1 changed files with 2 additions and 0 deletions

@ -10,6 +10,8 @@
namespace MathUtil {
static constexpr float PI = 3.14159265f;
inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1,
unsigned length1) {
return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1));