Utils: remove useless commented code

This commit is contained in:
Dylan K. Taylor 2021-08-15 19:38:55 +01:00
parent dfc82f6820
commit 1aa541aefe
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -347,18 +347,6 @@ final class Utils{
return preg_replace('#([^\x20-\x7E])#', '.', $str);
}
/*
public static function angle3D($pos1, $pos2){
$X = $pos1["x"] - $pos2["x"];
$Z = $pos1["z"] - $pos2["z"];
$dXZ = sqrt(pow($X, 2) + pow($Z, 2));
$Y = $pos1["y"] - $pos2["y"];
$hAngle = rad2deg(atan2($Z, $X) - M_PI_2);
$vAngle = rad2deg(-atan2($Y, $dXZ));
return array("yaw" => $hAngle, "pitch" => $vAngle);
}*/
public static function javaStringHash(string $string) : int{
$hash = 0;
for($i = 0, $len = strlen($string); $i < $len; $i++){