56namespace davidson_harel {
79 if (size <= m_CellSize / 2.0 || size >=
m_CellSize * 2.0) {
101 return IPoint(
int(x),
int(y));
114 if (d - floor(d) > 0) {
117 if (d < std::numeric_limits<int>::min() || d > std::numeric_limits<int>::max()) {
138 template<
typename TPo
int,
typename TNum>
139 bool crossesCell(TPoint&
A, TPoint&
B, TNum xlow, TNum xhigh, TNum ylow, TNum yhigh,
140 const IPoint& CellAdr)
const {
142 if (
A.m_x ==
B.m_x) {
148 double m = (
B.m_y -
A.m_y) / (
B.m_x -
A.m_x);
149 double c =
A.m_y -
A.m_x * m;
150 double y1 = m * xlow + c;
151 double y2 = m * xhigh + c;
Includes declaration of graph class.
Declaration of class HashArray2D.
Declaration of doubly linked lists and iterators.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Basic declarations, included by all source files.
The parameterized class Array2D implements dynamic two-dimensional arrays.
Rectangles with real coordinates.
double height() const
Returns the height of the rectangle.
double width() const
Returns the width of the rectangle.
Class for the representation of edges.
Stores additional attributes of a graph (like layout information).
Data type for general directed graphs (adjacency list representation).
Indexed 2-dimensional arrays using hashing for element access.
Doubly linked lists (maintaining the length of the list).
Class for the representation of nodes.
Singly linked lists (maintaining the length of the list).
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
The namespace for all OGDF objects.
GenericPoint< int > IPoint
Representing a two-dimensional point with integer coordinates.