class FleeingAlgorithm implements FleeingMotionAlgorithm, Serializable, Cloneable {

	@Override
	public Vector2D<?, ?> calculate(Point2D<?, ?> position, double linearSpeed, double maxLinear,
			Point2D<?, ?> target) {
		final Vector2d direction = new Vector2d(
				position.getX() - target.getX(),
				position.getY() - target.getY());
		direction.setLength(maxLinear);
		return direction;
	}

}