#include "rect.h"
#include "strngs.h"
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 ());
245 op1.bot_left.
set_x (INT16_MAX);
246 op1.bot_left.
set_y (INT16_MAX);
247 op1.top_right.
set_x (-INT16_MAX);
248 op1.top_right.
set_y (-INT16_MAX);
void set_x(int16_t xin)
rewrite function
int16_t y() const
access_function
int16_t x() const
access function
bool overlap(const TBOX &box) const
void set_y(int16_t yin)
rewrite 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 ());
void set_x(int16_t xin)
rewrite function
int16_t y() const
access_function
int16_t x() const
access function
void set_y(int16_t yin)
rewrite function