J
JD
Hi,
There are about 10+ 3-D points on the same line. I want to find the two end
points from these points. The efficiency is not an issue because there are
only 10 points or so. I just need a cleaner code to do it. Should I use
an STL set to store the distances among them and then retrieve the max
distance from the last element in the set? Then the question is how to know
which points are associated with this max distance? Your help is
appreciated.
JD
There are about 10+ 3-D points on the same line. I want to find the two end
points from these points. The efficiency is not an issue because there are
only 10 points or so. I just need a cleaner code to do it. Should I use
an STL set to store the distances among them and then retrieve the max
distance from the last element in the set? Then the question is how to know
which points are associated with this max distance? Your help is
appreciated.
JD