Functions | |
template<class T> T | min (const T &a, const T &b) |
template<class T> T | max (const T &a, const T &b) |
template<class T> T | mid (const T &a, const T &b, const T &c) |
int | round (float a) |
Variables | |
const double | pi = 3.14159265358979323846 |
const double | pi_2 = 1.57079632679489661923 |
A collection of small math helper functions, some of them might be equal in functionality to standard STL functions, but provided here for portability and broken STL implementations
|
Definition at line 43 of file math.hxx. Referenced by World::calc_bounding_box(), ZoomGraphicContext::draw_circles(), WorldViewSelectTool::draw_foreground(), Selection::get_center(), World::get_particles(), mid(), Rect< T >::Rect(), and Selection::scale(). |
|
|
|
Definition at line 34 of file math.hxx. Referenced by World::calc_bounding_box(), WorldViewSelectTool::draw_foreground(), Selection::get_center(), World::get_particles(), mid(), Rect< T >::Rect(), and Selection::scale(). |
|
Definition at line 57 of file math.hxx. Referenced by Particle::draw(), and Particle::draw_highlight(). |
|
|
|
|