summary refs log tree commit diff
path: root/src/Math/Mod.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-12-07 01:16:11 +0100
committerMel <einebeere@gmail.com>2023-12-07 01:16:11 +0100
commitc1a0768e55604687e82243bf64acd88d97a37ba0 (patch)
tree9ab0e1a5a1a9e3e8089c5827fa0c275f88acf1d4 /src/Math/Mod.hpp
parentca8b16620ec207f2b32edd1f5d46f7b0bfb0a14c (diff)
downloadmeowcraft-c1a0768e55604687e82243bf64acd88d97a37ba0.tar.zst
meowcraft-c1a0768e55604687e82243bf64acd88d97a37ba0.zip
Consolidate mathematical functions into single file and add more
Diffstat (limited to 'src/Math/Mod.hpp')
-rw-r--r--src/Math/Mod.hpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Math/Mod.hpp b/src/Math/Mod.hpp
deleted file mode 100644
index d686ad9..0000000
--- a/src/Math/Mod.hpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#pragma once
-
-namespace Math {
-
-// Returns the least nonnegative remainder of a % b.
-// Euclidian definition of modulo.
-template <typename A, typename B>
-auto mod(A a, B b) -> decltype(a % b) {
-    return (a % b + b) % b;
-}
-
-}
\ No newline at end of file