Address rest of review comments

This commit is contained in:
Ashley Rogers 2024-06-11 14:22:45 -04:00
parent 7517ad97df
commit 0f64573faf
1 changed files with 1 additions and 3 deletions

View File

@ -78,8 +78,6 @@ std::optional<GlobeRectangle> estimateGlobeRectangle(
struct Operation {
const CesiumGeospatial::Ellipsoid& ellipsoid;
Operation(const Ellipsoid& ellipsoid_) : ellipsoid(ellipsoid_) {}
std::optional<GlobeRectangle>
operator()(const BoundingSphere& boundingSphere) {
if (boundingSphere.contains(glm::dvec3(0.0))) {
@ -194,7 +192,7 @@ std::optional<GlobeRectangle> estimateGlobeRectangle(
}
};
return std::visit(Operation(ellipsoid), boundingVolume);
return std::visit(Operation{ellipsoid}, boundingVolume);
}
const CesiumGeospatial::BoundingRegion*