DotRecastNetSim/src/DotRecast.Recast/CompareHoles.cs

19 lines
417 B
C#
Raw Normal View History

2023-05-07 11:55:13 +03:00
using System.Collections.Generic;
namespace DotRecast.Recast
{
public class CompareHoles : IComparer<ContourHole>
{
public int Compare(ContourHole a, ContourHole b)
{
if (a.minx == b.minx)
{
return a.minz.CompareTo(b.minz);
}
else
{
return a.minx.CompareTo(b.minx);
}
}
}
}