FifeGUI 0.2.0
A C++ GUI library designed for games.
fcn::float_traits< double > Struct Reference

#include <math.hpp>

Public Types

using float_type = double

Static Public Member Functions

static float_type degToRad ()
static float_type epsilon ()
static float_type halfPi ()
static float_type inversePi ()
static float_type inverseTwoPi ()
static float_type invLog10 ()
static float_type invLog2 ()
static float_type log10 ()
static float_type log2 ()
static float_type max ()
static float_type pi ()
static float_type radToDeg ()
static float_type twoPi ()
static float_type zeroTolerance ()

Detailed Description

Specialization of float traits for double.

float_traits specialization for double. Provides useful constants and conversion helpers.

Definition at line 148 of file math.hpp.

Member Typedef Documentation

◆ float_type

using fcn::float_traits< double >::float_type = double

Floating-point typedef for this specialization.

Definition at line 150 of file math.hpp.

Member Function Documentation

◆ degToRad()

float_type fcn::float_traits< double >::degToRad ( )
inlinestatic

Degrees to radians conversion factor.

Definition at line 193 of file math.hpp.

◆ epsilon()

float_type fcn::float_traits< double >::epsilon ( )
inlinestatic

Machine epsilon for double.

Definition at line 153 of file math.hpp.

◆ halfPi()

float_type fcn::float_traits< double >::halfPi ( )
inlinestatic

Half of pi.

Definition at line 178 of file math.hpp.

◆ inversePi()

float_type fcn::float_traits< double >::inversePi ( )
inlinestatic

1/pi constant.

Definition at line 183 of file math.hpp.

◆ inverseTwoPi()

float_type fcn::float_traits< double >::inverseTwoPi ( )
inlinestatic

1/(2*pi) constant.

Definition at line 188 of file math.hpp.

◆ invLog10()

float_type fcn::float_traits< double >::invLog10 ( )
inlinestatic

1 / ln(10) for double conversions.

Definition at line 218 of file math.hpp.

◆ invLog2()

float_type fcn::float_traits< double >::invLog2 ( )
inlinestatic

1 / ln(2) for double conversions.

Definition at line 213 of file math.hpp.

◆ log10()

float_type fcn::float_traits< double >::log10 ( )
inlinestatic

Natural log base 10 for doubles.

Definition at line 208 of file math.hpp.

◆ log2()

float_type fcn::float_traits< double >::log2 ( )
inlinestatic

Natural log base 2 for doubles.

Definition at line 203 of file math.hpp.

◆ max()

float_type fcn::float_traits< double >::max ( )
inlinestatic

Maximum finite double value.

Definition at line 163 of file math.hpp.

◆ pi()

float_type fcn::float_traits< double >::pi ( )
inlinestatic

Pi constant for double.

Definition at line 168 of file math.hpp.

◆ radToDeg()

float_type fcn::float_traits< double >::radToDeg ( )
inlinestatic

Radians to degrees conversion factor.

Definition at line 198 of file math.hpp.

◆ twoPi()

float_type fcn::float_traits< double >::twoPi ( )
inlinestatic

Two times pi.

Definition at line 173 of file math.hpp.

◆ zeroTolerance()

float_type fcn::float_traits< double >::zeroTolerance ( )
inlinestatic

Recommended zero tolerance for double comparisons.

Definition at line 158 of file math.hpp.


The documentation for this struct was generated from the following file: