This commit is contained in:
GameHerobrine 2023-12-19 22:34:04 +03:00
parent 6d430c3440
commit b84093e4ce
25 changed files with 48 additions and 163 deletions

View file

@ -73,7 +73,7 @@ class Utils{
return $angle < 0 ? $angle + 360 : $angle - 180;
}
public static function getSign($v){
return $v > 0 ? 1 : ($v < 0 ? -1 : 0);
return $v <=> 0;
}
public static function clampDegrees($v){