![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
A rectangle of size (x_size, y_size) that can freely move inside the bounding_area rectangle.
Definition at line 430 of file diffn_util.h.
#include <diffn_util.h>
Public Types | |
| enum | Corner { BOTTOM_LEFT = 0 , TOP_LEFT = 1 , BOTTOM_RIGHT = 2 , TOP_RIGHT = 3 } |
Public Member Functions | |
| bool | operator== (const RectangleInRange &other) const |
| Rectangle | GetAtCorner (Corner p) const |
| Rectangle | GetBoudingBox () const |
| Rectangle | GetMinimumIntersection (const Rectangle &containing_area) const |
| Returns an empty rectangle if it is possible for no intersection to happen. | |
| IntegerValue | GetMinimumIntersectionArea (const Rectangle &containing_area) const |
| Rectangle | GetMandatoryRegion () const |
Static Public Member Functions | |
| static RectangleInRange | BiggestWithMinIntersection (const Rectangle &containing_area, const RectangleInRange &original, const IntegerValue &min_intersect_x, const IntegerValue &min_intersect_y) |
Public Attributes | |
| int | box_index |
| Rectangle | bounding_area |
| IntegerValue | x_size |
| IntegerValue | y_size |
Friends | |
| template<typename Sink> | |
| void | AbslStringify (Sink &sink, const RectangleInRange &r) |
| Enumerator | |
|---|---|
| BOTTOM_LEFT | |
| TOP_LEFT | |
| BOTTOM_RIGHT | |
| TOP_RIGHT | |
Definition at line 436 of file diffn_util.h.
|
inlinestatic |
We cannot intersect more units than the whole item.
Units that can not intersect per dimension.
Definition at line 519 of file diffn_util.h.
Returns the position of the rectangle fixed to one of the corner of its range.
Definition at line 451 of file diffn_util.h.
|
inline |
Definition at line 476 of file diffn_util.h.
|
inline |
Weird math to avoid overflow.
Definition at line 507 of file diffn_util.h.
|
inline |
Returns an empty rectangle if it is possible for no intersection to happen.
Definition at line 479 of file diffn_util.h.
|
inline |
Definition at line 497 of file diffn_util.h.
|
inline |
Definition at line 443 of file diffn_util.h.
|
friend |
Definition at line 548 of file diffn_util.h.
| Rectangle operations_research::sat::RectangleInRange::bounding_area |
Definition at line 432 of file diffn_util.h.
| int operations_research::sat::RectangleInRange::box_index |
Definition at line 431 of file diffn_util.h.
| IntegerValue operations_research::sat::RectangleInRange::x_size |
Definition at line 433 of file diffn_util.h.
| IntegerValue operations_research::sat::RectangleInRange::y_size |
Definition at line 434 of file diffn_util.h.