123456789101112131415161718192021222324252627282930313233343536373839 |
- namespace Dbscan
- {
- /// <summary>
- /// A holding class for algorithm related information about a point.
- /// </summary>
- /// <typeparam name="T">The type of the element this object is holding.</typeparam>
- public class PointInfo<T> : IPointData where T : IPointData
- {
- /// <summary>
- /// The object being held by this holder
- /// </summary>
- public T Item { get; }
- /// <summary>
- /// Whether or not this point has been clustered
- /// </summary>
- public bool Clustered { get; set; }
- /// <summary>
- /// Whether or not this point has been visited
- /// </summary>
- public bool Visited { get; set; }
- /// <summary>
- /// The location of this point
- /// </summary>
- public Point Point => Item.Point;
- /// <summary>
- /// Initializes a new <see cref="T:Dbscan.PointInfo`1" /> with the object it is holding.
- /// </summary>
- /// <param name="item"></param>
- public PointInfo(T item)
- {
- Item = item;
- }
- }
- }
|