Pins distance to 0 <= distance <= getLength(), and then computes the corresponding matrix (by calling getPosition/getTangent).
null if there is no path, or a zero-length path was specified.