65 if(r >= 0.0f) {
return 1; }
73 if(r >= 0) {
return 1; }
81 if(b) {
return 1.0f; }
82 else {
return -1.0f; }
89 return f + (t - f) * scale;
103 ASSERTX(r >= 0 &&
"input must be bigger than 0", r);
109 mod(
float numer,
float denumer)
111 return ::fmodf(numer, denumer);
118 return c >=
min && c <=
max;
125 get_lower_bound(
float num,
float gran)
132 get_upper_bound(
float num,
float gran)
142 const float lower = get_lower_bound(num, gran);
143 const float upper = get_upper_bound(num, gran);
144 const float percent = (num - lower) / gran;
float clamp_zero(float r)
float lerp_float(float f, float scale, float t)
bool is_within_inclusive_as_int(int min, int c, int max)
float mod(float numer, float denumer)
float round(float num, float gran)
Rounds a value to the nearest nice value.
bool is_equal(int lhs, int rhs)
int get_sign(float r)
Calculates the sign as a positive or a negative int.
size2f min(const size2f lhs, const size2f rhs)
size2f max(const size2f lhs, const size2f rhs)
int floor_to_int(float v)