Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

find a point on a line?

Hi! I have 5 points, stored in a vector<point2f>, that i know the coordinates of. The 5th point is on a line between 2 of the others. What is the best way to find out which two? And which one of the two it is closest to?

Many thanks.

c++