FacingAlgorithm implements FacingMotionAlgorithm, Serializable, Cloneable { @Override public double calculate(Point2D<?, ?> position, Vector2D<?, ?> orientation, double angularSpeed, double maxAngular, Point2D<?, ?> target) { final Vector2d alignTarget = new Vector2d( target.getX() - position.getX(), target.getY() - position.getY()); return this.aligning.calculate(orientation, angularSpeed, maxAngular, alignTarget); } FacingAlgorithm(AligningMotionAlgorithm aligning); @Pure @Override boolean equals(Object obj); @Pure @Override int hashCode(); @Pure @Override FacingAlgorithm clone(); @Override double calculate(Point2D<?, ?> position, Vector2D<?, ?> orientation, double angularSpeed, double maxAngular,
			Point2D<?, ?> target);  }
@Test public void calculate_far() { assertEpsilonEquals(-1.5708, this.face.calculate(new Point2d(1, 2), new Vector2d(-3, 5), 3, 4, new Point2d(6, 5))); }
@Test public void calculate_close() { assertZero(this.face.calculate(new Point2d(1, 2), new Vector2d(5, 3.1), 3, 4, new Point2d(6, 5))); }