private TGCPlane SelectPlane(List <TGCPlane> planes, TGCVector3 testPoint) { GlobalConcepts g = GlobalConcepts.GetInstance(); planes.Sort((x, y) => g.IsInFrontOf(testPoint, x).CompareTo(g.IsInFrontOf(testPoint, y))); planes.Reverse(); return(planes[0]); }