Workspace 7.0.2
Namespaces | Macros | Functions
mathdefs.h File Reference
#include <algorithm>
#include <cmath>
#include <cassert>
#include <limits>
#include <cinttypes>
#include <cstdlib>
#include <stdexcept>
Include dependency graph for mathdefs.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  CSIRO
 Top level namespace for all Workspace code.
 
namespace  CSIRO::Application
 Application-level functionality for all workspace applications.
 

Macros

#define ROUNDING_TOL   1e-10
 

Functions

template<class Real >
bool approxEqual (Real a, Real b, Real eps=epsilon< Real >())
 
template<typename Real >
Real clamp (Real x, Real lowerlimit, Real upperlimit)
 
template<typename Real >
Real clampMinPrec (Real value, Real minPrec=std::numeric_limits< Real >::min())
 
template<class Real >
bool definitelyGreaterThan (Real a, Real b, Real eps=epsilon< Real >())
 
template<class Real >
bool definitelyGreaterThanOrEqualTo (Real a, Real b, Real eps=epsilon< Real >())
 
template<class Real >
bool definitelyLessThan (Real a, Real b, Real eps=epsilon< Real >())
 
template<class Real >
bool definitelyLessThanOrEqualTo (Real a, Real b, Real eps=epsilon< Real >())
 
template<class Real >
bool definitelyWithinRangeInclusive (Real val, Real min, Real max, Real eps=epsilon< Real >())
 
template<typename T >
divideAndCeil (T numerator, T denominator)
 
template<typename T >
divideAndRound (T numerator, T denominator)
 
template<class Real >
constexpr Real epsilon ()
 
template<class T >
max3 (const T &a, const T &b, const T &c)
 
template<class T >
min3 (const T &a, const T &b, const T &c)
 
template<class Real >
Real safeACos (Real val)
 
template<typename T >
int sign (T val)
 
template<typename Real >
Real smoothstep (Real edge0, Real edge1, Real x)
 

Macro Definition Documentation

◆ ROUNDING_TOL

#define ROUNDING_TOL   1e-10