getPosition

fun getPosition(distance: Float): Point?

Pins distance to 0 <= distance <= getLength(), and then computes the corresponding position.

Return

null if there is no path, or a zero-length path was specified.