mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
cleanup
This commit is contained in:
parent
6d430c3440
commit
b84093e4ce
25 changed files with 48 additions and 163 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue