BoundsItemXComparer.cs 417 B

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