DotRecastNetSim/src/DotRecast.Recast/Geom/BoundsItemXComparer.cs

18 lines
417 B
C#

using System.Collections.Generic;
namespace DotRecast.Recast.Geom
{
public class BoundsItemXComparer : IComparer<BoundsItem>
{
public static readonly BoundsItemXComparer Shared = new BoundsItemXComparer();
private BoundsItemXComparer()
{
}
public int Compare(BoundsItem a, BoundsItem b)
{
return a.bmin.X.CompareTo(b.bmin.X);
}
}
}