Ajoute le paquet mths

This commit is contained in:
2022-10-14 08:39:42 +02:00
commit 1d08d368d5
4 changed files with 52 additions and 0 deletions

8
mths/src/mths.h Normal file
View File

@@ -0,0 +1,8 @@
/** Get the maximum between two numbers */
#define MAX(x, y) ((x > y) ? x : y)
/** Get the minimum between two numbers */
#define MIN(x, y) ((x < y) ? x : y)
/** Linearly interpolate t between two points a and b */
#define LERP(a, b, t) ((b - a) * t + a)