MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / rectOverlap

Method rectOverlap

source/base/StarWorldGeometry.cpp:251–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251RectF WorldGeometry::rectOverlap(RectF const& rect1, RectF const& rect2) const {
252 return rect1.overlap(RectF::withSize(nearestTo(rect1.min(), rect2.min()), rect2.size()));
253}
254
255bool WorldGeometry::polyContains(PolyF const& poly, Vec2F const& pos) const {
256 auto wpos = xwrap(pos);

Callers 1

queryHitMethod · 0.80

Calls 3

overlapMethod · 0.80
minMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected