void screen_controller::drawbox(int hor, int ver, int ul, int ur, int ll, int lr) { draw_vertical(0, 0, maxrow()-1, ver); draw_vertical(0, maxcol(), maxrow()-1, ver); draw_horizontal(0, 0, maxcol()-1, hor); draw_horizontal(maxrow(), 0, maxcol()-1, hor); upper_left(); printf("%d", ul, 0); lower_left(); printf("%d", ll, 0); upper_right(); printf("%d", ur, 0); lower_right(); printf("%d", lr, 0); }
inline bool Intersects(const RectangleInt2D &other) const { FixedPointCoordinate upper_left(other.max_lat, other.min_lon); FixedPointCoordinate upper_right(other.max_lat, other.max_lon); FixedPointCoordinate lower_right(other.min_lat, other.max_lon); FixedPointCoordinate lower_left(other.min_lat, other.min_lon); return (Contains(upper_left) || Contains(upper_right) || Contains(lower_right) || Contains(lower_left)); }
int32_xy tAoi::lowerleft() const { return lower_right(); }