Example #1
0
        private void CheckNodePosition(LineSegment seg, Coordinate p0, Coordinate p1, int expectedPositionValue)
        {
            var octant   = Octant.GetOctant(seg.P0, seg.P1);
            int posValue = SegmentPointComparator.Compare(octant, p0, p1);

            //TestContext.WriteLine(octant + " " + p0 + " " + p1 + " " + posValue);
            Assert.IsTrue(posValue == expectedPositionValue);
        }
Example #2
0
        private void checkNodePosition(Octants octant,
                                       double x0, double y0,
                                       double x1, double y1,
                                       int expectedPositionValue
                                       )
        {
            int posValue = SegmentPointComparator.Compare(octant,
                                                          new Coordinate(x0, y0),
                                                          new Coordinate(x1, y1)
                                                          );

            Assert.IsTrue(posValue == expectedPositionValue);
        }