EvadingAlgorithm extends AbstractTargetPositionPredictionAlgorithm implements EvadingMotionAlgorithm { @Override public Vector2D<?, ?> calculate(Point2D<?, ?> position, double linearSpeed, double maxLinear, Point2D<?, ?> targetPosition, Vector2D<?, ?> targetLinearMotion) { return this.fleeing.calculate(position, linearSpeed, maxLinear, predictTargetPosition(targetPosition, targetLinearMotion)); } EvadingAlgorithm(FleeingMotionAlgorithm fleeing, double predictionDuration); @Pure @Override boolean equals(Object obj); @Pure @Override int hashCode(); @Pure @Override EvadingAlgorithm clone(); @Override Vector2D<?, ?> calculate(Point2D<?, ?> position, double linearSpeed, double maxLinear,
			Point2D<?, ?> targetPosition, Vector2D<?, ?> targetLinearMotion);  }
@Test public void calculate() { assertFpVectorEquals(-2.82843, -2.82843, this.evade.calculate(new Point2d(1, 2), 3, 4, new Point2d(6, 5), new Vector2d(7, 8))); }