bool WaySubline::touches(const WaySubline& other) const { bool touches = true; if (other.getWay() != getWay() || getStart() > other.getEnd() || other.getStart() > getEnd()) { touches = false; } return touches; }
bool WaySubline::overlaps(const WaySubline& other) const { bool overlaps = true; if (other.getWay() != getWay() || getStart() >= other.getEnd() || other.getStart() >= getEnd()) { overlaps = false; } return overlaps; }