#include <diffn_util.h>
|
void | GrowToInclude (const Rectangle &other) |
|
IntegerValue | Area () const |
|
IntegerValue | SizeX () const |
|
IntegerValue | SizeY () const |
|
bool | IsDisjoint (const Rectangle &other) const |
|
Rectangle | Intersect (const Rectangle &other) const |
| Returns an empty rectangle if no intersection.
|
|
IntegerValue | IntersectArea (const Rectangle &other) const |
|
absl::InlinedVector< Rectangle, 4 > | SetDifference (const Rectangle &other) const |
|
bool | operator== (const Rectangle &other) const |
|
|
template<typename Sink > |
void | AbslStringify (Sink &sink, const Rectangle &r) |
|
Definition at line 40 of file diffn_util.h.
◆ Area()
IntegerValue operations_research::sat::Rectangle::Area |
( |
| ) |
const |
|
inline |
◆ GetEmpty()
static Rectangle operations_research::sat::Rectangle::GetEmpty |
( |
| ) |
|
|
inlinestatic |
◆ GrowToInclude()
void operations_research::sat::Rectangle::GrowToInclude |
( |
const Rectangle & | other | ) |
|
|
inline |
◆ Intersect()
Rectangle operations_research::sat::Rectangle::Intersect |
( |
const Rectangle & | other | ) |
const |
|
inline |
Returns an empty rectangle if no intersection.
Definition at line 87 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 |
◆ operator==()
bool operations_research::sat::Rectangle::operator== |
( |
const Rectangle & | other | ) |
const |
|
inline |
◆ SetDifference()
absl::InlinedVector< Rectangle, 4 > operations_research::sat::Rectangle::SetDifference |
( |
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 53 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: