forked from bit/DotRecastNetSim
rename for typo
This commit is contained in:
parent
77153ddb25
commit
40fda6806e
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace DotRecast.Recast
|
||||
{
|
||||
public class CompareHoles : IComparer<RcContourHole>
|
||||
public class RcContourHoleComparer : IComparer<RcContourHole>
|
||||
{
|
||||
public int Compare(RcContourHole a, RcContourHole b)
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace DotRecast.Recast
|
||||
{
|
||||
public class CompareDiagDist : IComparer<RcPotentialDiagonal>
|
||||
public class RcPotentialDiagonalComparer : IComparer<RcPotentialDiagonal>
|
||||
{
|
||||
public int Compare(RcPotentialDiagonal va, RcPotentialDiagonal vb)
|
||||
{
|
|
@ -619,7 +619,7 @@ namespace DotRecast.Recast
|
|||
region.holes[i].leftmost = minleft[2];
|
||||
}
|
||||
|
||||
Array.Sort(region.holes, new CompareHoles());
|
||||
Array.Sort(region.holes, new RcContourHoleComparer());
|
||||
|
||||
int maxVerts = region.outline.nverts;
|
||||
for (int i = 0; i < region.nholes; i++)
|
||||
|
@ -665,7 +665,7 @@ namespace DotRecast.Recast
|
|||
}
|
||||
|
||||
// Sort potential diagonals by distance, we want to make the connection as short as possible.
|
||||
Array.Sort(diags, 0, ndiags, new CompareDiagDist());
|
||||
Array.Sort(diags, 0, ndiags, new RcPotentialDiagonalComparer());
|
||||
|
||||
// Find a diagonal that is not intersecting the outline not the remaining holes.
|
||||
index = -1;
|
||||
|
|
Loading…
Reference in New Issue