forked from bit/DotRecastNetSim
rename for unity3d
This commit is contained in:
parent
40fda6806e
commit
eb077a4e6d
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace DotRecast.Detour
|
||||
{
|
||||
public class CompareItemX : IComparer<BVItem>
|
||||
public class BVItemXComparer : IComparer<BVItem>
|
||||
{
|
||||
public int Compare(BVItem a, BVItem b)
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace DotRecast.Detour
|
||||
{
|
||||
public class CompareItemY : IComparer<BVItem>
|
||||
public class BVItemYComparer : IComparer<BVItem>
|
||||
{
|
||||
public int Compare(BVItem a, BVItem b)
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace DotRecast.Detour
|
||||
{
|
||||
public class CompareItemZ : IComparer<BVItem>
|
||||
public class BVItemZComparer : IComparer<BVItem>
|
||||
{
|
||||
public int Compare(BVItem a, BVItem b)
|
||||
{
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue