-
Notifications
You must be signed in to change notification settings - Fork 0
/
IntervalComparer.cs
48 lines (41 loc) · 1.75 KB
/
IntervalComparer.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*****************************************************************************
* *
* IntervalComparer.cs *
* 20 March 2007 *
* Project: Crystalline *
* Written by: Richard Sartor *
* Copyright © 2007 Metaphysics Industries, Inc. *
* *
* Converted from C++ to C# on 10 November 2007 *
* *
* A class that sorts intervals. *
* *
*****************************************************************************/
using System;
using System.Collections.Generic;
using MetaphysicsIndustries.Collections;
namespace MetaphysicsIndustries.Crystalline
{
//public class IntervalComparer : IComparer<Interval>
//{
// public IntervalComparer(bool SortByMin)
// {
// _sortByMin = SortByMin;
// }
// public void Dispose()
// {
// }
// public virtual int Compare(Interval x, Interval y)
// {
// if (_sortByMin)
// {
// return x.Min.CompareTo(y.Min);
// }
// else
// {
// return x.Max.CompareTo(y.Max);
// }
// }
// private bool _sortByMin;
//}
}