protected function is_point_in_bounding_box($pointxy, $xleftytop, $xrightybottom) {
        if ($pointxy[0] < $xleftytop[0]) {
            return false;
        } else if ($pointxy[0] > $xrightybottom[0]) {
            return false;
        } else if ($pointxy[1] < $xleftytop[1]) {
            return false;
        } else if ($pointxy[1] > $xrightybottom[1]) {
            return false;
        }
        return true;
    }
protected function is_point_in_bounding_box($pointxy, $xleftytop, $xrightybottom) {
        if ($pointxy[0] < $xleftytop[0]) {
            return false;
        } else if ($pointxy[0] > $xrightybottom[0]) {
            return false;
        } else if ($pointxy[1] < $xleftytop[1]) {
            return false;
        } else if ($pointxy[1] > $xrightybottom[1]) {
            return false;
        }
        return true;
    }
protected function is_point_in_bounding_box ( $ pointxy , $ xleftytop , $ xrightybottom ) { if ( $ pointxy [ 0 ] < $ xleftytop [ 0 ] ) { return false ; } else if ( $ pointxy [ 0 ] > $ xrightybottom [ 0 ] ) { return false ; } else if ( $ pointxy [ 1 ] < $ xleftytop [ 1 ] ) { return false ; } else if ( $ pointxy [ 1 ] > $ xrightybottom [ 1 ] ) { return false ; } return true ; }
Checks if the point is within the bounding box made by top left and bottom right

@param array $pointxy Array of the point (x, y)
@param array $xleftytop Top left point of bounding box
@param array $xrightybottom Bottom left point of bounding box
@return bool
Checks if the point is within the bounding box made by top left and bottom right