ftp.cc.uoc.gr
Math Namespace Reference
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Math Namespace Reference

A collection of mathematical helper functions. More...


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

Detailed Description

A collection of mathematical helper functions.

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


Function Documentation

template<class T>
T max const T &    a,
const T &    b
 

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().

template<class T>
T mid const T &    a,
const T &    b,
const T &    c
 

Definition at line 52 of file math.hxx.

References max(), and min().

template<class T>
T min const T &    a,
const T &    b
 

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().

int round float    a [inline]
 

Definition at line 57 of file math.hxx.

Referenced by Particle::draw(), and Particle::draw_highlight().


Variable Documentation

const double Math::pi = 3.14159265358979323846
 

Definition at line 30 of file math.hxx.

const double Math::pi_2 = 1.57079632679489661923
 

Definition at line 31 of file math.hxx.


Generated on Thu Jul 24 10:25:31 2003 for Construo by doxygen1.3-rc3