diff options
Diffstat (limited to 'experimental/Intersection/DataTypes.h')
-rw-r--r-- | experimental/Intersection/DataTypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/experimental/Intersection/DataTypes.h b/experimental/Intersection/DataTypes.h index 69bd27bf2a..33d88fa007 100644 --- a/experimental/Intersection/DataTypes.h +++ b/experimental/Intersection/DataTypes.h @@ -104,6 +104,10 @@ inline bool approximately_positive(double x) { return x > -FLT_EPSILON; } +inline bool approximately_positive_squared(double x) { + return x > -(FLT_EPSILON * FLT_EPSILON); +} + inline bool approximately_zero_or_more(double x) { return x > -FLT_EPSILON; } |