#include <Magnum/Math/Constants.h>
template<class T>
Constants struct
Numeric constants.
Public static functions
- static auto pi() -> T constexpr
- .
- static auto piHalf() -> T constexpr
- Half of a .
- static auto piQuarter() -> T constexpr
- Quarter of a .
- static auto tau() -> T constexpr
- .
- 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 sqrtHalf() -> T constexpr
- Square root of .
- static auto nan() -> T constexpr
- Quiet NaN.
- static auto inf() -> T constexpr
- Positive .
Function documentation
template<class T>
static T Magnum:: Math:: Constants<T>:: pi() constexpr
.
template<class T>
static T Magnum:: Math:: Constants<T>:: piHalf() constexpr
Half of a .
template<class T>
static T Magnum:: Math:: Constants<T>:: piQuarter() constexpr
Quarter of a .
template<class T>
static T Magnum:: Math:: Constants<T>:: tau() constexpr
.
Or two pi. See the Tau manifesto. If you think this is wrong, note that Python has it too.
template<class T>
static T Magnum:: Math:: Constants<T>:: e() constexpr
Euler's number.
template<class T>
static T Magnum:: Math:: Constants<T>:: sqrt2() constexpr
Square root of 2.
template<class T>
static T Magnum:: Math:: Constants<T>:: sqrt3() constexpr
Square root of 3.
template<class T>
static T Magnum:: Math:: Constants<T>:: sqrtHalf() constexpr
Square root of .
template<class T>
static T Magnum:: Math:: Constants<T>:: nan() constexpr
Quiet NaN.
template<class T>
static T Magnum:: Math:: Constants<T>:: inf() constexpr
Positive .