Easier seen than explained, check out the link above
Given a path, the direction of the tangent vector at the end of the path, and a point you want to add to the path, this finds an arc that connects the path to the next point while keeping the path smooth.