aimstil
5.0.5
|
Functions | |
template<typename T > | |
boost::logic::tribool | is_positive (T x, T delta=128 *std::numeric_limits< T >::epsilon()) |
Tests whether x is positive, with a +- delta uncertainty cushion. More... | |
template<typename T > | |
boost::logic::tribool | same_sign (T x, T y, T delta=128 *std::numeric_limits< T >::epsilon()) |
Returns true iff both arguments have same sign, allowing some degree of imprecision. More... | |
|
inline |
Tests whether x is positive, with a +- delta uncertainty cushion.
In other words: if x > delta, x is definitely positive, and the result is true if x < -delta, x is definitely negative, and the result is false otherwise, the result is indeterminate.
|
inline |
Returns true iff both arguments have same sign, allowing some degree of imprecision.
Referenced by til::geo::IsIncludedIn::PointInTriangle2D< til::numeric_array >::operator()(), til::geo::Project::PointOnTriangle3D< TArray, TOutputArray >::operator()(), til::geo::AreIntersecting::Segments2D< til::numeric_array >::operator()(), and til::geo::AreIntersecting::Triangles3D< TArray >::operator()().