moving from .h to .hpp to make thing more clear

This commit is contained in:
2024-10-20 00:32:34 +03:00
parent e85f445dc4
commit 3809103d93
34 changed files with 45 additions and 45 deletions
+18
View File
@@ -0,0 +1,18 @@
//
// Created by vlad on 11/6/23.
//
#pragma once
#include <numbers>
namespace omath::angles
{
[[nodiscard]] constexpr float RadiansToDegrees(const float radiands)
{
return radiands * (180.f / std::numbers::pi_v<float>);
}
[[nodiscard]] constexpr float DegreesToRadians(const float degrees)
{
return degrees * (std::numbers::pi_v<float> / 180.f);
}
}