Index: src/Common/NetTopologySuite/Noding/SegmentNode.cs
===================================================================
diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a
--- src/Common/NetTopologySuite/Noding/SegmentNode.cs (.../SegmentNode.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9)
+++ src/Common/NetTopologySuite/Noding/SegmentNode.cs (.../SegmentNode.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a)
@@ -9,16 +9,16 @@
/// Represents an intersection point between two s.
///
public class SegmentNode : IComparable
- {
+ {
///
///
///
- public readonly ICoordinate Coordinate; // the point of intersection
-
+ public readonly ICoordinate Coordinate; // the point of intersection
+
///
///
///
- public readonly int SegmentIndex; // the index of the containing line segment in the parent edge
+ public readonly int SegmentIndex; // the index of the containing line segment in the parent edge
private readonly SegmentString segString = null;
private readonly Octants segmentOctant = Octants.Null;
@@ -31,7 +31,7 @@
///
///
///
- public SegmentNode(SegmentString segString, ICoordinate coord, int segmentIndex, Octants segmentOctant)
+ public SegmentNode(SegmentString segString, ICoordinate coord, int segmentIndex, Octants segmentOctant)
{
Coordinate = null;
this.segString = segString;
@@ -46,9 +46,11 @@
///
///
public bool IsInterior
- {
- get { return isInterior; }
-
+ {
+ get
+ {
+ return isInterior;
+ }
}
///
@@ -58,13 +60,25 @@
///
public bool IsEndPoint(int maxSegmentIndex)
{
- if (SegmentIndex == 0 && ! isInterior)
+ if (SegmentIndex == 0 && !isInterior)
+ {
return true;
+ }
return SegmentIndex == maxSegmentIndex;
- }
+ }
///
+ ///
///
+ ///
+ public void Write(StreamWriter outstream)
+ {
+ outstream.Write(Coordinate);
+ outstream.Write(" seg # = " + SegmentIndex);
+ }
+
+ ///
+ ///
///
///
/// -1 this SegmentNode is located before the argument location, or
@@ -74,23 +88,19 @@
public int CompareTo(object obj)
{
var other = (SegmentNode) obj;
- if (SegmentIndex < other.SegmentIndex)
+ if (SegmentIndex < other.SegmentIndex)
+ {
return -1;
- if (SegmentIndex > other.SegmentIndex)
+ }
+ if (SegmentIndex > other.SegmentIndex)
+ {
return 1;
+ }
if (Coordinate.Equals2D(other.Coordinate))
+ {
return 0;
+ }
return SegmentPointComparator.Compare(segmentOctant, Coordinate, other.Coordinate);
}
-
- ///
- ///
- ///
- ///
- public void Write(StreamWriter outstream)
- {
- outstream.Write(Coordinate);
- outstream.Write(" seg # = " + SegmentIndex);
- }
}
-}
+}
\ No newline at end of file