Skip to content

v0.2.54..v0.2.55 changeset WayLocation.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayLocation.cpp b/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayLocation.cpp
index a1cc0d2..eb3510a 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayLocation.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayLocation.cpp
@@ -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/)
  */
 
 #include "WayLocation.h"
@@ -422,4 +422,11 @@ QString WayLocation::toString() const
   }
 }
 
+bool WayLocation::isNode(double epsilon) const
+{
+  LOG_VART(epsilon);
+  LOG_VART(_segmentFraction);
+  return _segmentFraction <= epsilon || _segmentFraction >= 1.0 - epsilon;
+}
+
 }
Clone this wiki locally