feat: added mathext

main
Sara 2024-01-26 22:58:09 +01:00
parent 63c6a536e8
commit 3f5189f221
1 changed files with 9 additions and 0 deletions

9
mathext.h Normal file
View 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