From 40fda6806e09fcbfb40bb162a6547aee57066226 Mon Sep 17 00:00:00 2001 From: ikpil Date: Fri, 4 Aug 2023 23:18:40 +0900 Subject: [PATCH] rename for typo --- .../{CompareHoles.cs => RcContourHoleComparer.cs} | 2 +- .../{CompareDiagDist.cs => RcPotentialDiagonalComparer.cs} | 2 +- src/DotRecast.Recast/RecastContour.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/DotRecast.Recast/{CompareHoles.cs => RcContourHoleComparer.cs} (84%) rename src/DotRecast.Recast/{CompareDiagDist.cs => RcPotentialDiagonalComparer.cs} (79%) diff --git a/src/DotRecast.Recast/CompareHoles.cs b/src/DotRecast.Recast/RcContourHoleComparer.cs similarity index 84% rename from src/DotRecast.Recast/CompareHoles.cs rename to src/DotRecast.Recast/RcContourHoleComparer.cs index c0e153b..93eb73b 100644 --- a/src/DotRecast.Recast/CompareHoles.cs +++ b/src/DotRecast.Recast/RcContourHoleComparer.cs @@ -2,7 +2,7 @@ namespace DotRecast.Recast { - public class CompareHoles : IComparer + public class RcContourHoleComparer : IComparer { public int Compare(RcContourHole a, RcContourHole b) { diff --git a/src/DotRecast.Recast/CompareDiagDist.cs b/src/DotRecast.Recast/RcPotentialDiagonalComparer.cs similarity index 79% rename from src/DotRecast.Recast/CompareDiagDist.cs rename to src/DotRecast.Recast/RcPotentialDiagonalComparer.cs index 058607c..408bfd5 100644 --- a/src/DotRecast.Recast/CompareDiagDist.cs +++ b/src/DotRecast.Recast/RcPotentialDiagonalComparer.cs @@ -2,7 +2,7 @@ namespace DotRecast.Recast { - public class CompareDiagDist : IComparer + public class RcPotentialDiagonalComparer : IComparer { public int Compare(RcPotentialDiagonal va, RcPotentialDiagonal vb) { diff --git a/src/DotRecast.Recast/RecastContour.cs b/src/DotRecast.Recast/RecastContour.cs index 92d090f..7a8b523 100644 --- a/src/DotRecast.Recast/RecastContour.cs +++ b/src/DotRecast.Recast/RecastContour.cs @@ -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;