diff options
| author | Mel <einebeere@gmail.com> | 2023-12-07 01:16:11 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-12-07 01:16:11 +0100 |
| commit | c1a0768e55604687e82243bf64acd88d97a37ba0 (patch) | |
| tree | 9ab0e1a5a1a9e3e8089c5827fa0c275f88acf1d4 /src/Math/Mod.hpp | |
| parent | ca8b16620ec207f2b32edd1f5d46f7b0bfb0a14c (diff) | |
| download | meowcraft-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.hpp | 12 |
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 |
