We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79cb848 commit b40fa69Copy full SHA for b40fa69
src/KeyFrame.cpp
@@ -215,14 +215,8 @@ Point Keyframe::GetPreviousPoint(Point p) const {
215
Point Keyframe::GetMaxPoint() const {
216
Point maxPoint(-1, -1);
217
218
- // loop through points, and find the largest Y value
219
- for (int64_t x = 0; x < Points.size(); x++) {
220
- // Get each point
221
- Point existing_point = Points[x];
222
-
223
- // Is point larger than max point
+ for (Point const & existing_point: Points) {
224
if (existing_point.co.Y >= maxPoint.co.Y) {
225
- // New max point found
226
maxPoint = existing_point;
227
}
228
0 commit comments