MCPcopy Create free account
hub / github.com/comaps/comaps / IsIntersect

Method IsIntersect

libs/search/house_detector.cpp:670–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670bool ParsedNumber::IsIntersect(ParsedNumber const & number, int offset) const
671{
672 int const n = number.GetIntNumber();
673 if (((m_endN == -1) && abs(GetIntNumber() - n) > offset) ||
674 ((m_endN != -1) && (m_startN - offset > n || m_endN + offset < n)))
675 {
676 return false;
677 }
678 return true;
679}
680
681int House::GetMatch(ParsedNumber const & number) const
682{

Callers 11

GetMatchMethod · 0.45
GetNearbyMatchMethod · 0.45
GoInViewportMethod · 0.45
OrderCountriesMethod · 0.45
ForEachOfTypesInRectFunction · 0.45
UNIT_CLASS_TESTFunction · 0.45
UNIT_TESTFunction · 0.45
GetRegionsCountryIdMethod · 0.45
IsIntersectedByRegionMethod · 0.45

Calls 1

GetIntNumberMethod · 0.45

Tested by 2

UNIT_CLASS_TESTFunction · 0.36
UNIT_TESTFunction · 0.36