PHPWarrior\Floor::is_out_of_bounds PHP Method

is_out_of_bounds() public method

Is it out of bounds?
public is_out_of_bounds ( $x, $y ) : boolean
$x
$y
return boolean
    public function is_out_of_bounds($x, $y)
    {
        return $x < 0 || $y < 0 || $x > $this->width - 1 || $y > $this->height - 1;
    }