50 inline double abs(
double t)
52 return ( t > 0 ? t : -t);
55 inline double min(
double a,
double b)
57 return (a < b ? a : b);
60 inline double max(
double a,
double b)
62 return (a > b ? a : b);
66 inline double max(
int a,
int b)
68 return (a > b ? a : b);
72 inline double min(
int a,
int b)
74 return (a < b ? a : b);
77 inline float abs(
float t)
79 return ( t > 0 ? t : -t);
82 inline float min(
float a,
float b)
84 return (a < b ? a : b);
87 inline float max(
float a,
float b)
89 return (a > b ? a : b);
92 inline double sign(
double a)
94 return (a > 0 ? 1.0 : -1.0);
101 return (a > 0.0 ? 1.0f : -1.0f);
double max(double a, double b)
double min(double a, double b)