CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

math.h File Reference

Go to the source code of this file.

Functions

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>
csClamp (const T &a, T max, T min)
 Clamp a between max and min.
template<class T>
csSmoothStep (const T &a, T max, T min)
 Preforms a smooth interpolation of a on range min to max.
template<class T>
csSquare (const T &x)
 Returns the square of the argument.


Detailed Description

Definition in file math.h.


Generated for Crystal Space by doxygen 1.3.9.1