class ArrivingKinematicAlgorithm implements ArrivingMotionAlgorithm, Serializable, Cloneable {

	@Override
	public Vector2D<?, ?> calculate(Point2D<?, ?> position, double linearSpeed, double maxLinearSpeed,
			Point2D<?, ?> target) {
		final Vector2d v = new Vector2d(
				target.getX() - position.getX(),
				target.getY() - position.getY());
		if (v.getLengthSquared() <= this.stopSquaredDistance) {
			return new Vector2d();
		}
		v.setLength(maxLinearSpeed);
		return v;
	}

	public  ArrivingKinematicAlgorithm(double stopDistance);

}