ARX  1.0
The next-generation open source augmented reality toolkit.
Loading...
Searching...
No Matches
Macros
ARVideoSource.cpp File Reference
#include <stdlib.h>
#include <inttypes.h>
#include <math.h>
#include <ARX/ARVideoSource.h>
#include <ARX/Error.h>
#include <ARX/ARController.h>
#include <ARX/ARVideo/videoRGBA.h>
Include dependency graph for ARVideoSource.cpp:

Macros

#define MAX(x, y)   (x > y ? x : y)
 
#define MIN(x, y)   (x < y ? x : y)
 
#define CLAMP(x, r1, r2)   (MIN(MAX(x,r1),r2))
 

Macro Definition Documentation

◆ CLAMP

#define CLAMP (   x,
  r1,
  r2 
)    (MIN(MAX(x,r1),r2))

◆ MAX

#define MAX (   x,
 
)    (x > y ? x : y)

◆ MIN

#define MIN (   x,
 
)    (x < y ? x : y)