constants.hh 316 Bytes
Newer Older
Philip Trettner's avatar
Philip Trettner committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <limits>

#include "types.hh"

namespace tg
{
template <class T>
constexpr T pi = static_cast<T>(3.14159265358979323846);

// TODO: proper min vs. lowest
template <class T>
constexpr T min = std::numeric_limits<T>::min();

template <class T>
constexpr T max = std::numeric_limits<T>::max();
}