Template Struct constants

Struct Documentation

template<typename T>
struct constants

Public Static Attributes

static constexpr auto kEpsilon = static_cast<T>(1e-6)
static constexpr auto kPi = static_cast<T>(M_PI)
static constexpr auto kTwoPi = static_cast<T>(2 * M_PI)
static constexpr auto kHalfPi = static_cast<T>(M_PI_2)
static constexpr auto kQuarterPi = static_cast<T>(M_PI_4)
static constexpr auto kSqrt2 = static_cast<T>(M_SQRT2)
static constexpr auto kSqrt2Inv = static_cast<T>(1 / M_SQRT2)
static constexpr auto kSqrt3 = static_cast<T>(1.73205080757f)
static constexpr auto kSqrt3Inv = static_cast<T>(1 / 1.73205080757f)