MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / overlaps

Method overlaps

Source/Falcor/Utils/Math/Rectangle.h:97–101  ·  view source on GitHub ↗

Returns true if the two rectangles have any overlap.

Source from the content-addressed store, hash-verified

95
96 /// Returns true if the two rectangles have any overlap.
97 bool overlaps(Rectangle b)
98 {
99 b.intersection(*this);
100 return b.valid() && b.area() > 0.f;
101 }
102
103 /// Returns true if the Rectangle `b` is fully contained within this Rectangle.
104 bool contains(const Rectangle& b)

Callers

nothing calls this directly

Calls 2

validMethod · 0.45
areaMethod · 0.45

Tested by

no test coverage detected