rename for unity3d

This commit is contained in:
ikpil 2023-08-05 08:31:43 +09:00
parent 40fda6806e
commit eb077a4e6d
4 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
namespace DotRecast.Detour
{
public class CompareItemX : IComparer<BVItem>
public class BVItemXComparer : IComparer<BVItem>
{
public int Compare(BVItem a, BVItem b)
{

View File

@ -2,7 +2,7 @@
namespace DotRecast.Detour
{
public class CompareItemY : IComparer<BVItem>
public class BVItemYComparer : IComparer<BVItem>
{
public int Compare(BVItem a, BVItem b)
{

View File

@ -2,7 +2,7 @@
namespace DotRecast.Detour
{
public class CompareItemZ : IComparer<BVItem>
public class BVItemZComparer : IComparer<BVItem>
{
public int Compare(BVItem a, BVItem b)
{

View File

@ -116,17 +116,17 @@ namespace DotRecast.Detour
if (axis == 0)
{
// Sort along x-axis
Array.Sort(items, imin, inum, new CompareItemX());
Array.Sort(items, imin, inum, new BVItemXComparer());
}
else if (axis == 1)
{
// Sort along y-axis
Array.Sort(items, imin, inum, new CompareItemY());
Array.Sort(items, imin, inum, new BVItemYComparer());
}
else
{
// Sort along z-axis
Array.Sort(items, imin, inum, new CompareItemZ());
Array.Sort(items, imin, inum, new BVItemZComparer());
}
int isplit = imin + inum / 2;