mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00

* 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>
31 lines
478 B
C++
31 lines
478 B
C++
#ifndef _tglVector_h
|
|
#define _tglVector_h
|
|
|
|
#include "math.h" // sin() in RotateAroundY()
|
|
|
|
#include <stddef.h> // offsetof()
|
|
|
|
namespace Tgl
|
|
{
|
|
|
|
namespace Constant
|
|
{
|
|
const double Pi = 3.14159265358979323846;
|
|
};
|
|
|
|
inline double DegreesToRadians(double degrees)
|
|
{
|
|
return Constant::Pi * (degrees / 180.0);
|
|
}
|
|
|
|
inline double RadiansToDegrees(double radians)
|
|
{
|
|
return (radians / Constant::Pi) * 180.0;
|
|
}
|
|
|
|
typedef float FloatMatrix4[4][4];
|
|
|
|
} // namespace Tgl
|
|
|
|
#endif /* _tglVector_h */
|