| 253 | } |
| 254 | |
| 255 | bool WorldGeometry::polyContains(PolyF const& poly, Vec2F const& pos) const { |
| 256 | auto wpos = xwrap(pos); |
| 257 | for (auto const& p : splitPoly(poly)) { |
| 258 | if (p.contains(wpos)) |
| 259 | return true; |
| 260 | } |
| 261 | return false; |
| 262 | } |
| 263 | |
| 264 | float WorldGeometry::polyOverlapArea(PolyF const& poly1, PolyF const& poly2) const { |
| 265 | float area = 0.0f; |