BoundsItemYComparer.cs 417 B

123456789101112131415161718
  1. using System.Collections.Generic;
  2. namespace DotRecast.Recast.Geom
  3. {
  4. public class BoundsItemYComparer : IComparer<BoundsItem>
  5. {
  6. public static readonly BoundsItemYComparer Shared = new BoundsItemYComparer();
  7. private BoundsItemYComparer()
  8. {
  9. }
  10. public int Compare(BoundsItem a, BoundsItem b)
  11. {
  12. return a.bmin.y.CompareTo(b.bmin.y);
  13. }
  14. }
  15. }