#include <algorithm>
#include <cmath>
#include <cassert>
#include <limits>
#include <cinttypes>
#include <cstdlib>
#include <stdexcept>
|
namespace | CSIRO |
| Top level namespace for all Workspace code.
|
|
namespace | CSIRO::Application |
| Application-level functionality for all workspace applications.
|
|
|
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 > |
T | divideAndCeil (T numerator, T denominator) |
|
template<typename T > |
T | divideAndRound (T numerator, T denominator) |
|
template<class Real > |
constexpr Real | epsilon () |
|
template<class T > |
T | max3 (const T &a, const T &b, const T &c) |
|
template<class T > |
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) |
|
◆ ROUNDING_TOL
#define ROUNDING_TOL 1e-10 |