Implment getting horizontal/vertical intesections of ray casting.

This commit is contained in:
2023-04-04 20:02:49 +01:00
parent ca50b6f4b7
commit 3402fb50d9
5 changed files with 127 additions and 14 deletions
+7
View File
@@ -0,0 +1,7 @@
#include "maths.h"
float maths_modulo(float a, float b)
{
float r = fmod(a, b);
return r < 0? r + b : r;
}