Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Functions | |
template<class T > | |
const T & | csMax (const T &a, const T &b) |
template<class T > | |
const T & | csMin (const T &a, const T &b) |
template<class T > | |
void | csSort (T &a, T &b) |
template<class T , class U > | |
void | csSort (T &a, T &b, U &x, U &y) |
template<class T > | |
T | csClamp (const T &a, T max, T min) |
template<class T > | |
T | csSmoothStep (const T &a, T max, T min) |
template<class T , class Tfactor > | |
T | csLerp (const T &a, const T &b, const Tfactor &f) |
template<class T > | |
T | csSquare (const T &x) |
CS_FORCEINLINE bool | csFinite (float f) |
Checks if a floating point value is finite. More... | |
CS_FORCEINLINE bool | csFinite (double d) |
Checks if a double-precision floating point value is finite. More... | |
CS_FORCEINLINE bool | csNaN (float f) |
Checks if a floating point value is not-a-number. More... | |
CS_FORCEINLINE bool | csNaN (double d) |
Checks if a double-precision floating point value is not-a-number. More... | |
CS_FORCEINLINE bool | csNormal (float f) |
Checks if a floating point value is normal (not infinite or nan). More... | |
CS_FORCEINLINE bool | csNormal (double d) |
Checks if a double-precision floating point value is normal. More... | |
T csClamp | ( | const T & | a, |
T | max, | ||
T | min | ||
) |
CS_FORCEINLINE bool csFinite | ( | float | f) |
Checks if a floating point value is finite.
Definition at line 139 of file opmath.h.
Referenced by csNormal().
CS_FORCEINLINE bool csFinite | ( | double | d) |
T csLerp | ( | const T & | a, |
const T & | b, | ||
const Tfactor & | f | ||
) |
const T& csMax | ( | const T & | a, |
const T & | b | ||
) |
const T& csMin | ( | const T & | a, |
const T & | b | ||
) |
CS_FORCEINLINE bool csNaN | ( | float | f) |
Checks if a floating point value is not-a-number.
Definition at line 172 of file opmath.h.
Referenced by csNormal().
CS_FORCEINLINE bool csNaN | ( | double | d) |
Checks if a double-precision floating point value is not-a-number.
CS_FORCEINLINE bool csNormal | ( | float | f) |
Checks if a floating point value is normal (not infinite or nan).
Definition at line 201 of file opmath.h.
References csFinite(), and csNaN().
CS_FORCEINLINE bool csNormal | ( | double | d) |
Checks if a double-precision floating point value is normal.
Definition at line 214 of file opmath.h.
References csFinite(), and csNaN().
T csSmoothStep | ( | const T & | a, |
T | max, | ||
T | min | ||
) |
void csSort | ( | T & | a, |
T & | b | ||
) |
void csSort | ( | T & | a, |
T & | b, | ||
U & | x, | ||
U & | y | ||
) |