public void Test_S1IntervalTestBase_GetDirectedHausdorffDistance() { Assert2.Near(0.0, empty.GetDirectedHausdorffDistance(empty)); Assert2.Near(0.0, empty.GetDirectedHausdorffDistance(mid12)); Assert2.Near(Math.PI, mid12.GetDirectedHausdorffDistance(empty)); Assert.Equal(0.0, quad12.GetDirectedHausdorffDistance(quad123)); S1Interval in_ = new(3.0, -3.0); // an interval whose complement center is 0. Assert2.Near(3.0, new S1Interval(-0.1, 0.2).GetDirectedHausdorffDistance(in_)); Assert2.Near(3.0 - 0.1, new S1Interval(0.1, 0.2).GetDirectedHausdorffDistance(in_)); Assert2.Near(3.0 - 0.1, new S1Interval(-0.2, -0.1).GetDirectedHausdorffDistance(in_)); }