Ajoute le paquet mths

This commit is contained in:
clement committed 2022-10-14 08:39:42 +02:00
commit 1d08d368d5
4 files changed
+52

No files matched your search

+8
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)