CCT.NUI.HandTracking.PalmFinder.ReduceCandidatePoints C# (CSharp) Method

ReduceCandidatePoints() private method

private ReduceCandidatePoints ( ConvexHull hull, IList candidates ) : IList
hull CCT.NUI.Core.Shape.ConvexHull
candidates IList
return IList
        private IList<Point> ReduceCandidatePoints(ConvexHull hull, IList<Point> candidates)
        {
            var center = Point.Center(hull.Points);
            var maxDistance = this.searchRadius * 3;
            return candidates.Where(p => Point.Distance2D(center, p) <= maxDistance).ToList();
        }