Browse Source

Fix broken eucMod()

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
71fab3da71
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/math.hpp

+ 1
- 1
include/math.hpp View File

@@ -120,7 +120,7 @@ inline float normalizeZero(float x) {
See https://en.wikipedia.org/wiki/Euclidean_division.
*/
inline float eucMod(float a, float b) {
int mod = std::fmod(a, b);
float mod = std::fmod(a, b);
if (mod < 0.f) {
mod += b;
}


Loading…
Cancel
Save