diff options
Diffstat (limited to 'experimental/Intersection/DataTypes.h')
-rw-r--r-- | experimental/Intersection/DataTypes.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/experimental/Intersection/DataTypes.h b/experimental/Intersection/DataTypes.h index 94373cd238..8b97cec0e0 100644 --- a/experimental/Intersection/DataTypes.h +++ b/experimental/Intersection/DataTypes.h @@ -1,6 +1,16 @@ #ifndef __DataTypes_h__ #define __DataTypes_h__ +#ifdef __cplusplus +extern "C" { +#endif + +extern double fabs( double ); + +#ifdef __cplusplus +} +#endif + extern const double PointEpsilon; extern const double SquaredEpsilon; @@ -123,4 +133,8 @@ void xy_at_t(const Cubic& , double t, double& x, double& y); void xy_at_t(const _Line& , double t, double& x, double& y); void xy_at_t(const Quadratic& , double t, double& x, double& y); +bool AlmostEqualUlps(float A, float B, int maxUlpsDiff); +int UlpsDiff(float A, float B); +int FloatAsInt(float A); + #endif // __DataTypes_h__ |