OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Macros | Functions | Variables
OurMath.h File Reference
#include <cassert>
#include <cmath>
#include <cstdint>
#include <limits>

Macros

#define pi_double   3.14159265358979323846
 

Functions

int integer_sqrt (int val)
 
int round_to_int (float x)
 
uint32_t int_get_vector_length (int32_t x, int32_t y, int32_t z)
 
template<typename FloatType >
int bankersRounding (const FloatType &value)
 
template<>
int bankersRounding< float > (const float &inValue)
 
template<>
int bankersRounding< double > (const double &inValue)
 

Variables

const float pi = static_cast<float>(M_PI)
 

Macro Definition Documentation

◆ pi_double

#define pi_double   3.14159265358979323846

Function Documentation

◆ bankersRounding()

template<typename FloatType >
int bankersRounding ( const FloatType &  value)
inline

◆ bankersRounding< double >()

template<>
int bankersRounding< double > ( const double &  inValue)
inline

◆ bankersRounding< float >()

template<>
int bankersRounding< float > ( const float &  inValue)
inline

◆ int_get_vector_length()

uint32_t int_get_vector_length ( int32_t  x,
int32_t  y,
int32_t  z 
)

◆ integer_sqrt()

int integer_sqrt ( int  val)

◆ round_to_int()

int round_to_int ( float  x)
inline

Variable Documentation

◆ pi

const float pi = static_cast<float>(M_PI)