feat: added mathext
This commit is contained in:
parent
63c6a536e8
commit
3f5189f221
1 changed files with 9 additions and 0 deletions
9
mathext.h
Normal file
9
mathext.h
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#ifndef CUTES_MATHEXT_H
|
||||||
|
#define CUTES_MATHEXT_H
|
||||||
|
|
||||||
|
#define MIN(x__, min__) (((x__)<=(min__))?(min__):(x__))
|
||||||
|
#define MAX(x__, max__) (((x__)>=(max__))?(max__):(x__))
|
||||||
|
|
||||||
|
#define CLAMP(x__, min__, max__) MIN(MAX(x__, max__), min__)
|
||||||
|
|
||||||
|
#endif // !CUTES_MATHEXT_H
|
||||||
Loading…
Add table
Add a link
Reference in a new issue