mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
refactored projectile prediction
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
|
||||
namespace uml::angles
|
||||
{
|
||||
float RadToDeg(float rads)
|
||||
float RadiansToDegrees(const float radiands)
|
||||
{
|
||||
return rads * 180.f / std::numbers::pi_v<float>;
|
||||
return radiands * (180.f / std::numbers::pi_v<float>);
|
||||
}
|
||||
|
||||
float DegToRad(float degrees)
|
||||
float DegreesToRadians(const float degrees)
|
||||
{
|
||||
return degrees * std::numbers::pi_v<float> / 180.f;
|
||||
return degrees * (std::numbers::pi_v<float> / 180.f);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user