csgeom/math.h File Reference
Generic mathematic utility functions. More...
#include "csutil/algorithms.h"
Go to the source code of this file.
bool | csFinite (double d) |
bool | csFinite (float f) |
Checks if a floating point value is finite. | |
Functions | |
template<class T> | |
T | csClamp (const T &a, T max, T min) |
Clamp a between max and min. | |
template<class T> | |
const T & | csMax (const T &a, const T &b) |
Returns bigger of a and b. | |
template<class T> | |
const T & | csMin (const T &a, const T &b) |
Returns smaller of a and b. | |
template<class T> | |
T | csSmoothStep (const T &a, T max, T min) |
Preforms a smooth interpolation of a on range min to max. | |
template<class T, class U> | |
void | csSort (T &a, T &b, U &x, U &y) |
Sort a and b in order of size. | |
template<class T> | |
void | csSort (T &a, T &b) |
Sort a and b in order of size. | |
template<class T> | |
T | csSquare (const T &x) |
Returns the square of the argument. |
Detailed Description
Generic mathematic utility functions.
Definition in file math.h.
Generated for Crystal Space by doxygen 1.4.7