MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / overlaps

Method overlaps

CesiumGeometry/src/Rectangle.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16bool Rectangle::overlaps(const Rectangle& other) const noexcept {
17 const double left = glm::max(this->minimumX, other.minimumX);
18 const double bottom = glm::max(this->minimumY, other.minimumY);
19 const double right = glm::min(this->maximumX, other.maximumX);
20 const double top = glm::min(this->maximumY, other.maximumY);
21 return bottom < top && left < right;
22}
23
24bool Rectangle::fullyContains(const Rectangle& other) const noexcept {
25 return (

Callers 2

addAvailableTileRangeMethod · 0.80
getTileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected