Exemple #1
0
    public void Test_S1IntervalTestBase_Expanded()
    {
        Assert.Equal(empty.Expanded(1), empty);
        Assert.Equal(full.Expanded(1), full);
        Assert.Equal(zero.Expanded(1), new S1Interval(-1, 1));
        Assert.Equal(mipi.Expanded(0.01), new S1Interval(Math.PI - 0.01, -Math.PI + 0.01));
        Assert.Equal(pi.Expanded(27), full);
        Assert.Equal(pi.Expanded(S2.M_PI_2), quad23);
        Assert.Equal(pi2.Expanded(S2.M_PI_2), quad12);
        Assert.Equal(mipi2.Expanded(S2.M_PI_2), quad34);

        Assert.Equal(empty.Expanded(-1), empty);
        Assert.Equal(full.Expanded(-1), full);
        Assert.Equal(quad123.Expanded(-27), empty);
        Assert.Equal(quad234.Expanded(-27), empty);
        Assert.Equal(quad123.Expanded(-S2.M_PI_2), quad2);
        Assert.Equal(quad341.Expanded(-S2.M_PI_2), quad4);
        Assert.Equal(quad412.Expanded(-S2.M_PI_2), quad1);
    }