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

18 lines
417 B
C#
Raw Normal View History

2023-08-05 02:42:21 +03:00
using System.Collections.Generic;
namespace DotRecast.Recast.Geom
{
public class BoundsItemYComparer : IComparer<BoundsItem>
{
public static readonly BoundsItemYComparer Shared = new BoundsItemYComparer();
private BoundsItemYComparer()
{
}
public int Compare(BoundsItem a, BoundsItem b)
{
return a.bmin.y.CompareTo(b.bmin.y);
}
}
}