69 this->m_first_right = first_right;
70 this->m_second_right = second_right;
71 this->m_first_left = first_left;
72 this->m_second_left = second_left;
113 interval.first = (
std::min)(interval.first,s);
114 interval.second = (
std::max)(interval.second,s);
120 interval.first = (
std::min)(interval.first,s);
121 interval.second = (
std::max)(interval.second,s);
126 interval.first = (
std::min)(interval.first,s);
127 interval.second = (
std::max)(interval.second,s);
132 interval.first = (
std::min)(interval.first,s);
133 interval.second = (
std::max)(interval.second,s);
149 interval.first = (
std::min)(interval.first,s);
150 interval.second = (
std::max)(interval.second,s);
156 interval.first = (
std::min)(interval.first,s);
157 interval.second = (
std::max)(interval.second,s);
162 interval.first = (
std::min)(interval.first,s);
163 interval.second = (
std::max)(interval.second,s);
168 interval.first = (
std::min)(interval.first,s);
169 interval.second = (
std::max)(interval.second,s);
180 adoreMatrix<double,3,4> points;
302 if (std::sqrt(std::abs(s0(0)-s1(0))*std::abs(s0(0)-s1(0)) +std::abs(s1(1)-s0(1))*std::abs(s1(1)-s0(1)))>0.7)std::cout <<
" A C H T U N G" << std::endl;
309 if (std::sqrt(std::abs(s0(0)-s1(0))*std::abs(s0(0)-s1(0)) +std::abs(s1(1)-s0(1))*std::abs(s1(1)-s0(1)))>0.7)std::cout <<
" A C H T U N G" << std::endl;
316 if (std::sqrt(std::abs(s0(0)-s1(0))*std::abs(s0(0)-s1(0)) +std::abs(s1(1)-s0(1))*std::abs(s1(1)-s0(1)))>0.7)std::cout <<
" A C H T U N G" << std::endl;
323 if (std::sqrt(std::abs(s0(0)-s1(0))*std::abs(s0(0)-s1(0)) +std::abs(s1(1)-s0(1))*std::abs(s1(1)-s0(1)))>0.7)std::cout <<
" A C H T U N G" << std::endl;
343 auto p = ol->getCornerPointVector();
344 result.insert(result.begin(),p->begin(),p->end());
Set of BorderOverlap objects that are connected, e. g. to form a conflict zone.
Definition: borderoverlap.h:334
std::vector< Border * > conflictingBorders_
Definition: borderoverlap.h:337
std::vector< Border * > conflictingPath_
Definition: borderoverlap.h:338
std::vector< BorderOverlap * > borderoverlaps_
Definition: borderoverlap.h:336
void getCoordinates(std::vector< Coordinate > &result)
Definition: borderoverlap.h:339
virtual CT f(DT x) const override
Definition: llinearpiecewisefunction.h:251
bool getFirstIntersection2d(LLinearPiecewiseFunctionM< T, n > *other, int dim1, int dim2, std::pair< T, T > &result)
Definition: llinearpiecewisefunction.h:664
double getClosestParameter(T px, T py, int d1, int d2, T &n_min) const
Definition: llinearpiecewisefunction.h:1014
virtual DT limitLo() const override
Definition: llinearpiecewisefunction.h:264
virtual DT limitHi() const override
Definition: llinearpiecewisefunction.h:259
T bound(T lb, T value, T ub)
Definition: adoremath.h:569
T min(T a, T b, T c, T d)
Definition: adoremath.h:663
adoreMatrix< T, N, M > max(adoreMatrix< T, N, M > a, const adoreMatrix< T, N, M > &b)
Definition: adoremath.h:686
Definition: areaofeffectconverter.h:20
Definition: borderoverlap.h:32
std::pair< double, double > m_intersection_left_left
Definition: borderoverlap.h:34
Border * m_second_right
Definition: borderoverlap.h:43
unsigned int getNumberOfIntersections()
Get the number of intersections.
Definition: borderoverlap.h:94
adoreMatrix< double, 3, 4 > getCornerPoints()
Get the corner points of the overlap.
Definition: borderoverlap.h:178
std::vector< Coordinate > points_
Definition: borderoverlap.h:46
bool m_has_intersection_right_right
Definition: borderoverlap.h:41
std::pair< double, double > m_intersection_left_right
Definition: borderoverlap.h:35
std::vector< Coordinate > * getCornerPointVector()
Definition: borderoverlap.h:294
std::pair< double, double > m_intersection_right_left
Definition: borderoverlap.h:36
std::pair< double, double > getIntersectionIntervalSR()
Get the intersection interval of second right border.
Definition: borderoverlap.h:142
Border * m_second_left
Definition: borderoverlap.h:45
bool hasAnyOverlap()
Check for any overlap.
Definition: borderoverlap.h:85
BorderOverlap(Border *first_right, Border *first_left, Border *second_right, Border *second_left)
Construct a new Border Overlap object.
Definition: borderoverlap.h:65
std::pair< double, double > m_intersection_right_right
Definition: borderoverlap.h:37
Border * m_first_right
Definition: borderoverlap.h:42
BorderOverlap()
Construct a new BorderOverlap object.
Definition: borderoverlap.h:51
Border * m_first_left
Definition: borderoverlap.h:44
bool m_has_intersection_right_left
Definition: borderoverlap.h:40
bool m_has_intersection_left_right
Definition: borderoverlap.h:39
std::pair< double, double > getIntersectionIntervalFR()
Get the intersection interval of first right border.
Definition: borderoverlap.h:106
bool m_has_intersection_left_left
Definition: borderoverlap.h:38
The border struct contains data of the smallest.
Definition: border.h:62
Tborderpath * m_path
Definition: border.h:70