standard.hpp File Reference

Header with some standard defines and functions. More...

#include <assert.h>
#include <math.h>
#include "Exceptions.hpp"

Include dependency graph for standard.hpp:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define ROUND(x)   ((int)floor(x+0.5))
 Rounds x to the nearest whole number.

#define MAX(a, b)   ((a) > (b)?(a):(b))
#define MIN(a, b)   ((a) < (b)?(a):(b))
#define M_PI   3.14159265358979323846
#define CLAMP_MINMAX(_val, _min, _max)   (_val>_max)?(_val=_max):((_val<_min)?(_val=_min):(_val))
 Clamp _val so that _min <= _val <= _max.

#define printWarning   printf


Detailed Description

Header with some standard defines and functions.

Author: Matt Loper

Revision
1.3
Date
2003/04/21 02:14:25

Definition in file standard.hpp.


Generated on Mon May 26 11:19:52 2003 for CamChecker by doxygen1.3