Exemple #1
0
bool WaySubline::touches(const WaySubline& other) const
{
  bool touches = true;

  if (other.getWay() != getWay() ||
      getStart() > other.getEnd() ||
      other.getStart() > getEnd())
  {
    touches = false;
  }

  return touches;
}
Exemple #2
0
bool WaySubline::overlaps(const WaySubline& other) const
{
  bool overlaps = true;

  if (other.getWay() != getWay() ||
      getStart() >= other.getEnd() ||
      other.getStart() >= getEnd())
  {
    overlaps = false;
  }

  return overlaps;
}