MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / nearZero

Function nearZero

source/core/StarMathCommon.hpp:95–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94template <typename T>
95typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type nearZero(T x, unsigned ulp = 2) {
96 return abs(x) <= std::numeric_limits<T>::min() * ulp;
97}
98
99template <typename T>
100typename std::enable_if<std::numeric_limits<T>::is_integer, bool>::type nearZero(T x) {

Callers 1

intersectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected