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

#include <math.hpp>

Public Types

using float_type = float

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 float.

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

Definition at line 65 of file math.hpp.

Member Typedef Documentation

◆ float_type

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

Floating-point typedef for this specialization.

Definition at line 67 of file math.hpp.

Member Function Documentation

◆ degToRad()

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

Degrees to radians conversion factor.

Definition at line 110 of file math.hpp.

◆ epsilon()

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

Machine epsilon for float.

Definition at line 70 of file math.hpp.

◆ halfPi()

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

Half of pi.

Definition at line 95 of file math.hpp.

◆ inversePi()

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

1/pi constant.

Definition at line 100 of file math.hpp.

◆ inverseTwoPi()

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

1/(2*pi) constant.

Definition at line 105 of file math.hpp.

◆ invLog10()

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

1 / ln(10) for float conversions.

Definition at line 135 of file math.hpp.

◆ invLog2()

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

1 / ln(2) for float conversions.

Definition at line 130 of file math.hpp.

◆ log10()

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

Natural log base 10 for floats.

Definition at line 125 of file math.hpp.

◆ log2()

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

Natural log base 2 for floats.

Definition at line 120 of file math.hpp.

◆ max()

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

Maximum finite float value.

Definition at line 80 of file math.hpp.

◆ pi()

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

Pi constant for floats.

Definition at line 85 of file math.hpp.

◆ radToDeg()

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

Radians to degrees conversion factor.

Definition at line 115 of file math.hpp.

◆ twoPi()

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

Two times pi.

Definition at line 90 of file math.hpp.

◆ zeroTolerance()

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

Recommended zero tolerance for float comparisons.

Definition at line 75 of file math.hpp.


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