Functions | Variables
Util.h File Reference
#include <cmath>
Include dependency graph for Util.h:

Go to the source code of this file.

Functions

int fac (int n)
int ftoi (float f)
int max (int a, int b)
int min (int a, int b)

Variables

static const double M_PI2 = 2 * M_PI

Function Documentation

int fac ( int  n) [inline]

Computes the faculty of the given input number. The input number has to take a value between 0 and 12. Otherwise, the application will quit.

Parameters:
nThe number which faculty shall be computed.
Returns:
The faculty of the input number.

Definition at line 15 of file Util.h.

int ftoi ( float  f) [inline]

Converts float to integer, considering a correct roundung policy.

Parameters:
fA float value.
Returns:
A corresponding integer value.

Definition at line 33 of file Util.h.

int max ( int  a,
int  b 
) [inline]

Returns the maximum of two given integer numbers.

Parameters:
aAn arbitrary number.
bAnother arbitrary number.
Returns:
The maximum of the two input numbers.

Definition at line 57 of file Util.h.

int min ( int  a,
int  b 
) [inline]

Returns the minimum of two given integer numbers.

Parameters:
aAn arbitrary number.
bAnother arbitrary number.
Returns:
The minimum of the two input numbers.

Definition at line 45 of file Util.h.


Variable Documentation

const double M_PI2 = 2 * M_PI [static]

Definition at line 6 of file Util.h.



obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:43