16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 19:19:19 +02:00

Replace RadToDeg and DegToRad with glm::degrees and glm::radians

This commit is contained in:
docentYT
2026-05-02 14:51:13 +02:00
parent ca699d117f
commit 7081dab3c2
5 changed files with 19 additions and 22 deletions

View File

@@ -20,9 +20,6 @@ template <typename T> T sign(T x)
return x < static_cast<T>(0) ? static_cast<T>(-1) : (x > static_cast<T>(0) ? static_cast<T>(1) : static_cast<T>(0));
}
#define DegToRad(a) ((M_PI / 180.0) * (a)) //(a) w nawiasie, bo może być dodawaniem
#define RadToDeg(r) ((180.0 / M_PI) * (r))
template <typename T> constexpr T sq(T v)
{
return v * v;