mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Fix float constants and conversions (#1279)
* Fix legoplants warnings, add BETA10 references * Fix warnings in various header files, improve match * Fix floats in legoactors.cpp * Fix `legolocations.cpp` * fix typo --------- Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -10,15 +10,15 @@ namespace Tgl
|
||||
|
||||
namespace Constant
|
||||
{
|
||||
const float Pi = 3.14159265358979323846;
|
||||
const double Pi = 3.14159265358979323846;
|
||||
};
|
||||
|
||||
inline float DegreesToRadians(float degrees)
|
||||
inline double DegreesToRadians(double degrees)
|
||||
{
|
||||
return Constant::Pi * (degrees / 180.0);
|
||||
}
|
||||
|
||||
inline float RadiansToDegrees(float radians)
|
||||
inline double RadiansToDegrees(double radians)
|
||||
{
|
||||
return (radians / Constant::Pi) * 180.0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user