From c1a0768e55604687e82243bf64acd88d97a37ba0 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 7 Dec 2023 01:16:11 +0100 Subject: Consolidate mathematical functions into single file and add more --- src/Math/Trig.hpp | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/Math/Trig.hpp (limited to 'src/Math/Trig.hpp') 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 -T radians(T degrees) { - return degrees * PI / 180.0f; -} - -template -T degrees(T radians) { - return radians * 180.0f / PI; -} - -} \ No newline at end of file -- cgit 1.4.1