more precise comment

This commit is contained in:
sonora 2012-03-20 22:13:02 +01:00
parent 9a1a99bec2
commit 57b6c21413

View file

@ -265,7 +265,7 @@ public class RoutingHelper {
} }
} }
// 4. >60m away from current routeNode? Then re-calculate route. // 4. >60m off current route (sideways)? Then re-calculate route.
if(currentRoute > 0){ if(currentRoute > 0){
float bearingRoute = routeNodes.get(currentRoute - 1).bearingTo(routeNodes.get(currentRoute)); float bearingRoute = routeNodes.get(currentRoute - 1).bearingTo(routeNodes.get(currentRoute));
float bearingToRoute = currentLocation.bearingTo(routeNodes.get(currentRoute)); float bearingToRoute = currentLocation.bearingTo(routeNodes.get(currentRoute));