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

Method contains

CesiumGeometry/src/Rectangle.cpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace CesiumGeometry {
10
11bool Rectangle::contains(const glm::dvec2& position) const noexcept {
12 return position.x >= this->minimumX && position.y >= this->minimumY &&
13 position.x <= this->maximumX && position.y <= this->maximumY;
14}
15
16bool Rectangle::overlaps(const Rectangle& other) const noexcept {
17 const double left = glm::max(this->minimumX, other.minimumX);

Callers 10

rasterizeQuadtreeNodeFunction · 0.45
positionToTileMethod · 0.45
positionToTileMethod · 0.45
findMaxLevelFromNodeMethod · 0.45
TestGltfReader.cppFile · 0.45
decodeSpzFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected