|
From: Patrick H. <pa...@13...> - 2007-10-09 21:17:18
|
Eron Steger wrote: > findNearestPt for planes does not properly calculate the distance of th= e=20 > point to the plane. It should be done as: >=20 > DATA_TYPE dist_to_plane =3D distance(plane, pt); Did you run the GMTL test suite with the above change? It looks to me lik= e tests are already used to verify that the distance calculation returned b= y gmtl::findNearestPt() is the same as that returned by gmtl::distance() fo= r a point and a plane. Are you suggesting the above change to improve code re= use or to fix a bug? -Patrick --=20 Patrick L. Hartling Senior Software Engineer, Priority 5 http://www.priority5.com/ |