math/Vector.php
public function divide(float $scale) : Vector
    {
        if ($scale == 0) {
            throw new exceptions\DivisionByZero;
        }

        return $this->multiply(1.0 / $scale);
    }
public function divide(float $scale) : Vector
    {
        if ($scale == 0) {
            throw new exceptions\DivisionByZero;
        }

        return $this->multiply(1.0 / $scale);
    }
public function divide ( float $ scale ) : Vector { if ( $ scale == 0 ) { throw new exceptions \ DivisionByZero ; } return $ this -> multiply ( 1.0 / $ scale ) ; }
Divides the Vector by the given scale and returns the result as a new Vector.

@param   float   $scale              The scale to divide by.
@return  Vector                      The result of the division.
@throws  exceptions\DivisionByZero   When $scale is 0.f.
Divides the Vector by the given scale and returns the result as a new Vector .