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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user