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/Trig.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/Trig.hpp')
| -rw-r--r-- | src/Math/Trig.hpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/Math/Trig.hpp b/src/Math/Trig.hpp deleted file mode 100644 index 00489a9..0000000 --- a/src/Math/Trig.hpp +++ /dev/null @@ -1,17 +0,0 @@ -#pragma once - -#include "Constants.hpp" - -namespace Math { - -template<typename T> -T radians(T degrees) { - return degrees * PI / 180.0f; -} - -template<typename T> -T degrees(T radians) { - return radians * 180.0f / PI; -} - -} \ No newline at end of file |
