コード例 #1
0
bool WaySublineMatchString::touches(const WaySublineMatchString& other) const
{
  WaySublineCollection wss1 = getSublineString1();
  WaySublineCollection wss2 = getSublineString2();
  WaySublineCollection owss1 = other.getSublineString1();
  WaySublineCollection owss2 = other.getSublineString2();
  return wss1.touches(owss1) ||
      wss2.touches(owss2) ||
      wss1.touches(owss2) ||
      wss2.touches(owss1);
}