-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.52..v0.2.53 changeset RTreeNode.cpp
Garret Voltz edited this page Feb 12, 2020
·
1 revision
diff --git a/tgs/src/main/cpp/tgs/RStarTree/RTreeNode.cpp b/tgs/src/main/cpp/tgs/RStarTree/RTreeNode.cpp
index e9bb956..1791ea3 100644
--- a/tgs/src/main/cpp/tgs/RStarTree/RTreeNode.cpp
+++ b/tgs/src/main/cpp/tgs/RStarTree/RTreeNode.cpp
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#include "RTreeNode.h"
@@ -78,7 +78,9 @@ double BoxInternalData::calculateExpansion(const Box& b) const
assert(b.getDimensions() == getDimensions());
for (int i = 0; i < _dimensions; i++)
{
- v2 *= std::max(getUpperBound(i), b.getUpperBound(i)) - std::min(getLowerBound(i), b.getLowerBound(i));
+ v2 *=
+ std::max(getUpperBound(i), b.getUpperBound(i)) -
+ std::min(getLowerBound(i), b.getLowerBound(i));
}
return v2 - v1;
}
@@ -159,7 +161,6 @@ bool BoxInternalData::isContained(const Box& b) const
return result;
}
-
RTreeNode::RTreeNode(int dimensions, const std::shared_ptr<Page>& page)
{
_dimensions = dimensions;
@@ -182,7 +183,6 @@ RTreeNode::~RTreeNode()
{
}
-
void RTreeNode::addChild(const Box& envelope, int id)
{
assert(getChildCount() < _maxChildCount);