This is a snapshot of a work-in-progress documentation theme. If you feel lost, miss something, or want to see the original Doxygen docs instead, head over to the archived version of this documentation page.

template<class T>
Magnum::Math::Constants struct

Numeric constants.

Contents

Public static functions

static auto pi() -> T constexpr
Pi.
static auto piHalf() -> T constexpr
Half pi.
static auto tau() -> T constexpr
Tau.
static auto e() -> T constexpr
Euler's number.
static auto sqrt2() -> T constexpr
Square root of 2.
static auto sqrt3() -> T constexpr
Square root of 3.
static auto nan() -> T constexpr
Quiet NaN.
static auto inf() -> T constexpr
Positive infinity.

Function documentation

template<class T>
static T Magnum::Math::Constants<T>::pi() constexpr

Pi.

template<class T>
static T Magnum::Math::Constants<T>::piHalf() constexpr

Half pi.

template<class T>
static T Magnum::Math::Constants<T>::tau() constexpr

Tau.

Or two pi. See the Tau manifesto.