bool range(double x_start, double x_end, double y_start, double y_end)
{
	if(x_start <= y_start && x_end <= y_end)
		return true;

	if (y_start <= x_start && y_end <= x_end)
		return true;

	return false;
}

x_start~x_end

y_start~y_end

사이 값 겹치는 값이 존재할 경우 true return;

                              없을 경우 true return;

+ Recent posts