Closed jievince closed 3 years ago
S2Point
s have finite precision. It's not really useful or interesting to ask if a point is on a line. Use the distance to the line with a threshold if you want to do that.
Sorry @jmr, I didn't find a function in the S2 library that defines the shortest distance from a S2Point to a Polyline.
Seems S2Polyline::Project
is what I want...
In math, testing if a point is on a line is easy.