I am measuring the distance between *points* (the center of the circles) and *lines* (marked in blue) using Point3d#distance_to_line.

Since this method treats lines as infinite, both cases give the same result (zero). However this isn’t valid for my use-case; I need a way to distinguish the first case from the second.

I understand that it *looks* like I can check if the point touches the line via traversal (e.g. `vertex.edges`

) but in reality the point is *very slightly* offset from the line so they are not actually touching.

So, I am asking here if anyone knows a way to check “distance_to_line” but *without treating the line as infinite*.

I can think of a workaround, which is to resample the line (basically, construct a bunch of points along it) and then test the distance between each of those points with the circled point. I’m pretty sure that would work, but I’m curious if there’s an easier way.

Thank you!