initial commit

This commit is contained in:
Orange
2023-11-23 05:03:54 +03:00
committed by Vladislav Alpatov
commit 7c533861a7
15 changed files with 954 additions and 0 deletions

18
source/angles.cpp Normal file
View File

@@ -0,0 +1,18 @@
//
// Created by vlad on 11/6/23.
//
#include "uml/angles.h"
#include <cmath>
namespace uml::angles
{
float RadToDeg(float rads)
{
return rads * 180.f / static_cast<float>(M_PI);
}
float DegToRad(float degrees)
{
return degrees * static_cast<float>(M_PI) / 180.f;
}
}