Go to the source code of this file.
◆ operator &=()
Definition at line 230 of file rect.cpp.
232 if (op2.bot_left.
x () > op1.bot_left.
x ())
233 op1.bot_left.
set_x (op2.bot_left.
x ());
235 if (op2.top_right.
x () < op1.top_right.
x ())
236 op1.top_right.
set_x (op2.top_right.
x ());
238 if (op2.bot_left.
y () > op1.bot_left.
y ())
239 op1.bot_left.
set_y (op2.bot_left.
y ());
241 if (op2.top_right.
y () < op1.top_right.
y ())
242 op1.top_right.
set_y (op2.top_right.
y ());
bool overlap(const TBOX &box) const
inT16 x() const
access function
void set_y(inT16 yin)
rewrite function
void set_x(inT16 xin)
rewrite function
inT16 y() const
access_function
◆ operator+=()
Definition at line 205 of file rect.cpp.
208 if (op2.bot_left.
x () < op1.bot_left.
x ())
209 op1.bot_left.
set_x (op2.bot_left.
x ());
211 if (op2.top_right.
x () > op1.top_right.
x ())
212 op1.top_right.
set_x (op2.top_right.
x ());
214 if (op2.bot_left.
y () < op1.bot_left.
y ())
215 op1.bot_left.
set_y (op2.bot_left.
y ());
217 if (op2.top_right.
y () > op1.top_right.
y ())
218 op1.top_right.
set_y (op2.top_right.
y ());
inT16 x() const
access function
void set_y(inT16 yin)
rewrite function
void set_x(inT16 xin)
rewrite function
inT16 y() const
access_function