Phone, World, Ped

This commit is contained in:
eray orçunus
2019-07-15 15:11:40 +03:00
parent 980b6ed4d2
commit 2c138b2b77
16 changed files with 677 additions and 83 deletions

View File

@@ -36,6 +36,22 @@ public:
}
}
static float LimitAngle(float angle)
{
float result = angle;
while (result >= 180.0f) {
result -= 2 * 180.0f;
}
while (result < -180.0f) {
result += 2 * 180.0f;
}
return result;
}
static float LimitRadianAngle(float angle)
{
float result;