20 #ifndef FASTUIDRAW_MATH_HPP 21 #define FASTUIDRAW_MATH_HPP 35 #define FASTUIDRAW_PI 3.14159265358979323846f 45 return (a < b) ? a : b;
56 return (a < b) ? b : a;
67 return (a < T(0)) ? T(-1) : T(1);
75 t_sin(
float x) { return ::sinf(x); }
82 t_cos(
float x) { return ::cosf(x); }
89 t_tan(
float x) { return ::tanf(x); }
96 t_sqrt(
float x) { return ::sqrtf(x); }
124 t_atan2(
float y,
float x) { return ::atan2f(y, x); }
131 t_sin(
double x) { return ::sin(x); }
138 t_cos(
double x) { return ::cos(x); }
145 t_tan(
double x) { return ::tan(x); }
180 t_atan2(
double y,
double x) { return ::atan2(y, x); }
187 t_sin(
long double x) { return ::sinl(x); }
194 t_cos(
long double x) { return ::cosl(x); }
201 t_tan(
long double x) { return ::tanl(x); }
208 t_sqrt(
long double x) { return ::sqrtl(x); }
215 t_asin(
long double x) { return ::asinl(x); }
222 t_acos(
long double x) { return ::acosl(x); }
229 t_atan(
long double x) { return ::atanl(x); }
236 t_atan2(
long double y,
long double x) { return ::atan2l(y, x); }
257 t_abs(
long long x) { return ::llabs(x); }
278 t_abs(
long double x) {
return fabsl(x); }
float t_atan2(float y, float x)
all classes and functions of FastUIDraw are in the namespace fastuidraw.
const T & t_max(const T &a, const T &b)
const T & t_min(const T &a, const T &b)