diff --git a/openVulkanoCpp/Math/Math.hpp b/openVulkanoCpp/Math/Math.hpp index cdaa1c5..5e3253f 100644 --- a/openVulkanoCpp/Math/Math.hpp +++ b/openVulkanoCpp/Math/Math.hpp @@ -21,6 +21,13 @@ namespace OpenVulkano::Math namespace Utils { using namespace glm; + + template>> + constexpr T Radians(T degree) + { + constexpr T CONVERSION = M_PI / 180.0; + return degree * CONVERSION; + } } template using Matrix2_SIMD = glm::tmat2x2;