#include <diffn_util.h>
Definition at line 44 of file diffn_util.h.
◆ Area()
IntegerValue operations_research::sat::Rectangle::Area |
( |
| ) |
const |
|
inline |
◆ CapArea()
IntegerValue operations_research::sat::Rectangle::CapArea |
( |
| ) |
const |
|
inline |
◆ GetEmpty()
static Rectangle operations_research::sat::Rectangle::GetEmpty |
( |
| ) |
|
|
inlinestatic |
◆ GrowToInclude()
void operations_research::sat::Rectangle::GrowToInclude |
( |
const Rectangle & | other | ) |
|
|
inline |
◆ Intersect()
The methods below are not meant to be used with zero-area rectangles.
Returns an empty rectangle if no intersection.
Definition at line 105 of file diffn_util.h.
◆ IntersectArea()
IntegerValue operations_research::sat::Rectangle::IntersectArea |
( |
const Rectangle & | other | ) |
const |
|
inline |
◆ IsDisjoint()
bool operations_research::sat::Rectangle::IsDisjoint |
( |
const Rectangle & | other | ) |
const |
◆ IsInsideOf()
bool operations_research::sat::Rectangle::IsInsideOf |
( |
const Rectangle & | other | ) |
const |
|
inline |
◆ operator!=()
bool operations_research::sat::Rectangle::operator!= |
( |
const Rectangle & | other | ) |
const |
|
inline |
◆ operator==()
bool operations_research::sat::Rectangle::operator== |
( |
const Rectangle & | other | ) |
const |
|
inline |
◆ RegionDifference()
absl::InlinedVector< Rectangle, 4 > operations_research::sat::Rectangle::RegionDifference |
( |
const Rectangle & | other | ) |
const |
Returns this \ other
as a set of disjoint rectangles of non-empty area. The resulting vector will have at most four elements.
Piece 1
Piece 2
Piece 3
Piece 4
Definition at line 62 of file diffn_util.cc.
◆ SizeX()
IntegerValue operations_research::sat::Rectangle::SizeX |
( |
| ) |
const |
|
inline |
◆ SizeY()
IntegerValue operations_research::sat::Rectangle::SizeY |
( |
| ) |
const |
|
inline |
◆ AbslStringify
template<typename Sink>
void AbslStringify |
( |
Sink & | sink, |
|
|
const Rectangle & | r ) |
|
friend |
◆ x_max
IntegerValue operations_research::sat::Rectangle::x_max |
◆ x_min
IntegerValue operations_research::sat::Rectangle::x_min |
◆ y_max
IntegerValue operations_research::sat::Rectangle::y_max |
◆ y_min
IntegerValue operations_research::sat::Rectangle::y_min |
The documentation for this struct was generated from the following files: