# KdTreeSearchResults class

Namespace: [Grasshopper2.Geometry.Clustering](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.geometry.clustering.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class KdTreeSearchResults
```

Represent a collection of near searches.

## Constructors

- [KdTreeSearchResults](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/ctor.md): Create an empty search result bucket.

## Properties

- [Capacity](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/capacity.md): Gets the number of results this collection could potentially store.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/count.md): Gets the number of actual results.
- [LargestDistance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/largestdistance.md): Gets the distance of the furthest result.
- [LargestQuadrance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/largestquadrance.md): Gets the distance of the furthest result.
- [ParentSet](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/parentset.md): Gets the sample set associated with these results.
- [Results](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/results.md): Enumerate over all results, from closest to furthest.
- [SmallestDistance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/smallestdistance.md): Gets the distance of the closest result.
- [SmallestQuadrance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/smallestquadrance.md): Gets the distance of the closest result.

## Methods

- [DistanceAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/distanceat.md): Gets the item distance associated with the given result index.
- [IndexAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.kdtreesearchresults/indexat.md): Gets the item index associated with the given result index.
