Ajoute le paquet mths
This commit is contained in:
8
mths/src/mths.h
Normal file
8
mths/src/mths.h
Normal 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)
|
Reference in New Issue
Block a user