@Test public void testBearingDestinationAlongLocationDirection() { Line lrpLine = mapDatabase.getLine(3L); int projectionAlongLine = 70; GeoCoordinates bearingDestinationInDirection = bearingPointCalculator.calculateBearingDestinationInDirection(lrpLine, bearingDistance, projectionAlongLine); int distanceAlongSuccessorLine = bearingDistance - (lrpLine.getLineLength() - projectionAlongLine); assertEquals(bearingDestinationInDirection, mapDatabase.getLine(4L).getGeoCoordinateAlongLine(distanceAlongSuccessorLine)); }
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);  }