raycasting/maths.cpp

8 lines
110 B
C++
Raw Normal View History

#include "maths.h"
float maths_modulo(float a, float b)
{
float r = fmod(a, b);
return r < 0? r + b : r;
}