diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-03-07 16:26:50 +0100 |
---|---|---|
committer | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-03-07 16:26:50 +0100 |
commit | cb31bc5a4404399cdd720895a7c3f0fc8881bba6 (patch) | |
tree | e2d69179a5ad1ac9311ca848857027a3c9dc57e6 /src/stm32/TODO/maths.h | |
parent | 7c9468e7165aac2724a8bad19e950ca435f68316 (diff) |
some func defenitions for game-engine and foundation
Diffstat (limited to 'src/stm32/TODO/maths.h')
-rw-r--r-- | src/stm32/TODO/maths.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stm32/TODO/maths.h b/src/stm32/TODO/maths.h new file mode 100644 index 0000000..7b68156 --- /dev/null +++ b/src/stm32/TODO/maths.h @@ -0,0 +1,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 ); |