-
Notifications
You must be signed in to change notification settings - Fork 0
/
IKdComparable.cs
29 lines (26 loc) · 925 Bytes
/
IKdComparable.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
namespace Structures.Interface
{
/// <summary>
/// Defines operations required by <see cref="Tree.KdTree{T}"/> data structure
/// </summary>
public interface IKdComparable
{
/// <summary>
/// Number of dimensions in which object is comparable
/// </summary>
public int DimensionCount { get; }
/// <summary>
/// Gets key of k-th dimension
/// </summary>
/// <param name="dimension">K-th dimension of object</param>
/// <returns>Key of k-th dimension</returns>
public IComparable GetKey(int dimension);
/// <summary>
/// Determines if two <see cref="IKdComparable"/> are identical objects
/// </summary>
/// <param name="other"></param>
/// <returns>True if objects are Identical, False otherwise</returns>
public bool Identical(IKdComparable other);
}
}