Lydia - Printhead
Loading...
Searching...
No Matches
xmath.h File Reference

Go to the source code of this file.

Macros

#define NCLAMP(x, min, max)   (x - min) / (max - min)
 
#define RANGE(i, min, max)   ((i > min) && (i < max)) ? true : false
 

Macro Definition Documentation

◆ NCLAMP

#define NCLAMP ( x,
min,
max )   (x - min) / (max - min)

Definition at line 18 of file xmath.h.

◆ RANGE

#define RANGE ( i,
min,
max )   ((i > min) && (i < max)) ? true : false

Definition at line 16 of file xmath.h.