@Test public void testBearingDestinationAgainstLocationDirection() { Line lrpLine = mapDatabase.getLine(4L); int projectionAlongLine = 14; GeoCoordinates bearingDestinationAgainstDirection = bearingPointCalculator.calculateBearingDestinationAgainstDirection(lrpLine, bearingDistance, projectionAlongLine); Line parentLine = mapDatabase.getLine(3L); int distanceAlongPredecessorLine = parentLine.getLineLength() - (bearingDistance - projectionAlongLine); assertEquals(bearingDestinationAgainstDirection, parentLine.getGeoCoordinateAlongLine(distanceAlongPredecessorLine)); }
public GeoCoordinates calculateBearingDestinationAgainstDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, projectionAlongLine, false, bearingDistance); }
BearingPointCalculator { public GeoCoordinates calculateBearingDestinationAgainstDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, projectionAlongLine, false, bearingDistance); } }
BearingPointCalculator { public GeoCoordinates calculateBearingDestinationAgainstDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, projectionAlongLine, false, bearingDistance); }  }
BearingPointCalculator { public GeoCoordinates calculateBearingDestinationAgainstDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, projectionAlongLine, false, bearingDistance); }  GeoCoordinates calculateBearingDestinationInDirection(Line lrpLine, int bearingDistance, int projectionAlongLine); GeoCoordinates calculateBearingDestinationAgainstDirection(Line lrpLine, int bearingDistance, int projectionAlongLine); }
BearingPointCalculator { public GeoCoordinates calculateBearingDestinationAgainstDirection(Line lrpLine, int bearingDistance, int projectionAlongLine) { return getBearingDestination(lrpLine, projectionAlongLine, false, bearingDistance); }  GeoCoordinates calculateBearingDestinationInDirection(Line lrpLine, int bearingDistance, int projectionAlongLine); GeoCoordinates calculateBearingDestinationAgainstDirection(Line lrpLine, int bearingDistance, int projectionAlongLine);  }