Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
opmath.h File Reference
#include "config.h"
#include <math.h>
#include <float.h>
#include "cmd/collide2/opcodealgorithms.h"

Go to the source code of this file.

Macros

#define HAVE_ISNORMAL   1
 

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 >
csClamp (const T &a, T max, T min)
 
template<class T >
csSmoothStep (const T &a, T max, T min)
 
template<class T , class Tfactor >
csLerp (const T &a, const T &b, const Tfactor &f)
 
template<class 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...
 

Detailed Description

Generic mathematic utility functions.

Definition in file opmath.h.

Macro Definition Documentation

#define HAVE_ISNORMAL   1

Definition at line 23 of file opmath.h.