blob: 7b6815670d059e42bab0924567f5cc9904f6afad (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <math.h>
typedef struct vec2{
float x,y;
};
/// @brief clamps x between min and max
/// @param x value to clamp
/// @param min
/// @param max
float clamp( float& x, float &min, float &max );
|