distToPath

fun distToPath(x: Double, y: Double, startEnd: Boolean? = null): Double
fun distToPath(p: Point, startEnd: Boolean? = null): Double