bool Boundary::partialWithin(const AbstractPoly& poly, SUMOReal offset) const { return poly.around(Position(myXmax, myYmax), offset) || poly.around(Position(myXmin, myYmax), offset) || poly.around(Position(myXmax, myYmin), offset) || poly.around(Position(myXmin, myYmin), offset); }
bool PositionVector::partialWithin(const AbstractPoly& poly, SUMOReal offset) const { for (const_iterator i = begin(); i != end() - 1; i++) { if (poly.around(*i, offset)) { return true; } } return false; }