-
Notifications
You must be signed in to change notification settings - Fork 75
v0.2.54..v0.2.55 changeset WayLocation.h
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayLocation.h b/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayLocation.h
index c08712c..7804374 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayLocation.h
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayLocation.h
@@ -23,7 +23,7 @@
* copyrights will be updated automatically.
*
* @copyright Copyright (C) 2005 VividSolutions (http://www.vividsolutions.com/)
- * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#ifndef __WAY_LOCATION_H__
#define __WAY_LOCATION_H__
@@ -125,7 +125,7 @@ public:
double getSegmentFraction() const { return _segmentFraction; }
/**
- * Returns true if this way location is at one extreme or the other (isFirst() || isLast())
+ * Returns true if this way location is at one extreme or the other, first or last
*/
bool isExtreme(double epsilon = 0.0) const { return isFirst(epsilon) || isLast(epsilon); }
@@ -137,8 +137,7 @@ public:
/**
* If this is effectively on a node.
*/
- bool isNode(double epsilon = 0.0) const
- { return _segmentFraction <= epsilon || _segmentFraction >= 1.0 - epsilon; }
+ bool isNode(double epsilon = 0.0) const;
bool isValid() const { return _segmentIndex != -1; }