![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
#include <2d_rectangle_presolve.h>
Classes | |
class | CompareClockwise |
Public Member Functions | |
Neighbours (absl::Span< const Rectangle > rectangles, absl::Span< const std::tuple< int, EdgePosition, int > > neighbors) | |
int | NumRectangles () const |
absl::Span< const int > | GetSortedNeighbors (int rectangle_index, EdgePosition edge) const |
Neighbors are sorted in the clockwise order. | |
Given a set of non-overlapping rectangles, precompute a data-structure that allow for each rectangle to find the adjacent rectangle along an edge.
+++++++++ +++++++++ +++++++++ +++++++++
Precondition: All rectangles must be disjoint.
Definition at line 166 of file 2d_rectangle_presolve.h.
|
inlineexplicit |
Definition at line 187 of file 2d_rectangle_presolve.h.
|
inline |
Neighbors are sorted in the clockwise order.
Definition at line 207 of file 2d_rectangle_presolve.h.
|
inline |
Definition at line 204 of file 2d_rectangle_presolve.h.