mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 23:13:26 +00:00
rebranding moment
This commit is contained in:
@@ -2,18 +2,18 @@
|
||||
// Created by vlad on 11/6/23.
|
||||
//
|
||||
|
||||
#include "uml/angles.h"
|
||||
#include "omath/angles.h"
|
||||
#include <numbers>
|
||||
|
||||
|
||||
namespace uml::angles
|
||||
namespace omath::angles
|
||||
{
|
||||
float RadiansToDegrees(const float radiands)
|
||||
constexpr float RadiansToDegrees(const float radiands)
|
||||
{
|
||||
return radiands * (180.f / std::numbers::pi_v<float>);
|
||||
}
|
||||
|
||||
float DegreesToRadians(const float degrees)
|
||||
constexpr float DegreesToRadians(const float degrees)
|
||||
{
|
||||
return degrees * (std::numbers::pi_v<float> / 180.f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user