I didn’t find any method on java api to do this… there is one like : line.contains(point).. but it says that line2d doesn’t have any area so it will return always false..
Any idea ?
I didn’t find any method on java api to do this… there is one
Share
You should compute the distance from the point to the line, and if it is sufficiently small, then consider the point being on the line.
Google “distance point to line” or “distance point to segment”.