Euphoria
numeric.cc File Reference
#include "base/numeric.h"
#include "assert/assert.h"
#include "base/angle.h"
#include "base/range.h"
#include <cmath>

Go to the source code of this file.

Namespaces

 eu
 

Functions

bool eu::is_equal (int lhs, int rhs)
 
bool eu::is_zero (int r)
 
float eu::clamp_zero (float r)
 
float eu::floor (float v)
 
float eu::ceil (float v)
 
int eu::floor_to_int (float v)
 
int eu::ceil_to_int (float v)
 
int eu::get_sign (float r)
 Calculates the sign as a positive or a negative int. More...
 
int eu::get_sign (int r)
 
float eu::get_sign (bool b)
 Returns either 1 or -1. More...
 
float eu::lerp_float (float f, float scale, float t)
 
float eu::square (float r)
 
float eu::sqrt (float r)
 
float eu::mod (float numer, float denumer)
 
bool eu::is_within_inclusive_as_int (int min, int c, int max)
 
float eu::round (float num, float gran)
 Rounds a value to the nearest nice value. More...