Index: src/Common/NetTopologySuite/Noding/SegmentPointComparator.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/NetTopologySuite/Noding/SegmentPointComparator.cs (.../SegmentPointComparator.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/Common/NetTopologySuite/Noding/SegmentPointComparator.cs (.../SegmentPointComparator.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -13,7 +13,6 @@ /// public class SegmentPointComparator { - /// /// Compares two s for their relative position along a segment /// lying in the specified . @@ -29,15 +28,17 @@ public static int Compare(Octants octant, ICoordinate p0, ICoordinate p1) { // nodes can only be equal if their coordinates are equal - if (p0.Equals2D(p1)) + if (p0.Equals2D(p1)) + { return 0; + } var xSign = RelativeSign(p0.X, p1.X); var ySign = RelativeSign(p0.Y, p1.Y); switch (octant) { - case Octants.Zero: + case Octants.Zero: return CompareValue(xSign, ySign); case Octants.One: return CompareValue(ySign, xSign); @@ -67,10 +68,14 @@ /// public static int RelativeSign(double x0, double x1) { - if (x0 < x1) + if (x0 < x1) + { return -1; - if (x0 > x1) + } + if (x0 > x1) + { return 1; + } return 0; } @@ -83,15 +88,22 @@ private static int CompareValue(int compareSign0, int compareSign1) { if (compareSign0 < 0) + { return -1; - if (compareSign0 > 0) + } + if (compareSign0 > 0) + { return 1; + } if (compareSign1 < 0) + { return -1; - if (compareSign1 > 0) + } + if (compareSign1 > 0) + { return 1; + } return 0; - } } -} +} \ No newline at end of file