#include "mfcpch.h"
#include "rect.h"
Go to the source code of this file.
Function Documentation
Definition at line 221 of file rect.cpp.
{
if (op2.bot_left.
x () > op1.bot_left.
x ())
op1.bot_left.
set_x (op2.bot_left.
x ());
if (op2.top_right.
x () < op1.top_right.
x ())
op1.top_right.
set_x (op2.top_right.
x ());
if (op2.bot_left.
y () > op1.bot_left.
y ())
op1.bot_left.
set_y (op2.bot_left.
y ());
if (op2.top_right.
y () < op1.top_right.
y ())
op1.top_right.
set_y (op2.top_right.
y ());
}
else {
}
return op1;
}
Definition at line 196 of file rect.cpp.
{
if (op2.bot_left.
x () < op1.bot_left.
x ())
op1.bot_left.
set_x (op2.bot_left.
x ());
if (op2.top_right.
x () > op1.top_right.
x ())
op1.top_right.
set_x (op2.top_right.
x ());
if (op2.bot_left.
y () < op1.bot_left.
y ())
op1.bot_left.
set_y (op2.bot_left.
y ());
if (op2.top_right.
y () > op1.top_right.
y ())
op1.top_right.
set_y (op2.top_right.
y ());
return op1;
}