Go to the documentation of this file.
27 #ifndef __RADAR_MATH_HPP__
28 #define __RADAR_MATH_HPP__
36 namespace Radar {
namespace math {
42 #define FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
43 #define FLOAT_MAX std::numeric_limits<float>::max()
44 #define FLOAT_MIN std::numeric_limits<float>::min()
46 #define DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
47 #define DOUBLE_MAX std::numeric_limits<double>::max()
48 #define DOUBLE_MIN std::numeric_limits<double>::min()
55 static inline bool isnan(
double x) {
return x != x; }
60 static inline bool isnan(
float x) {
return x != x; }
62 static inline float abs(
float x) {
return (x > 0 ? x : -x); }
63 static inline double abs(
double x) {
return (x > 0 ? x : -x); }