Neos\Eel\Helper\MathHelper::hypot PHP Метод

hypot() публичный Метод

public hypot ( float $x, float $y, float $z_ = null ) : float
$x float A number
$y float A number
$z_ float Optional variable list of additional numbers
Результат float The square root of the sum of squares of the arguments
    public function hypot($x, $y, $z_ = null)
    {
        if ($z_ === null) {
            return hypot($x, $y);
        }
        $sum = 0;
        foreach (func_get_args() as $value) {
            $sum += $value * $value;
        }
        return sqrt($sum);
    }