#include <cmath>
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:
-
n | The 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:
-
- 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:
-
a | An arbitrary number. |
b | Another 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:
-
a | An arbitrary number. |
b | Another arbitrary number. |
- Returns:
- The minimum of the two input numbers.
Definition at line 45 of file Util.h.
Variable Documentation
Definition at line 6 of file Util.h.