@Test public void testBearingRouteAlongMultipleRoadSegments() { Line lrpLine = multiWalkMapDatabase.getLine(1L); Line bearingDestination = multiWalkMapDatabase.getLine(6L); assertEquals(bearingPointCalculator.calculateBearingDestinationInDirection(lrpLine, 500, 0), bearingDestination.getEndNode().getGeoCoordinates()); }
public GeoCoordinates calculateBearingDestinationInDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, lrpLine.getLineLength() - projectionAlongLine, true, bearingDistance); }
BearingPointCalculator { public GeoCoordinates calculateBearingDestinationInDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, lrpLine.getLineLength() - projectionAlongLine, true, bearingDistance); } }
BearingPointCalculator { public GeoCoordinates calculateBearingDestinationInDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, lrpLine.getLineLength() - projectionAlongLine, true, bearingDistance); }  }
BearingPointCalculator { public GeoCoordinates calculateBearingDestinationInDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, lrpLine.getLineLength() - projectionAlongLine, true, bearingDistance); }  GeoCoordinates calculateBearingDestinationInDirection(Line lrpLine, int bearingDistance, int projectionAlongLine); GeoCoordinates calculateBearingDestinationAgainstDirection(Line lrpLine, int bearingDistance, int projectionAlongLine); }
BearingPointCalculator { public GeoCoordinates calculateBearingDestinationInDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, lrpLine.getLineLength() - projectionAlongLine, true, bearingDistance); }  GeoCoordinates calculateBearingDestinationInDirection(Line lrpLine, int bearingDistance, int projectionAlongLine); GeoCoordinates calculateBearingDestinationAgainstDirection(Line lrpLine, int bearingDistance, int projectionAlongLine);  }