Example #1
0
 public void Test_S2LatLng_NegativeZeros()
 {
     Assert.True(IsIdentical(
                     S2LatLng.Latitude(new S2Point(1.0, 0.0, -0.0)).Radians, +0.0));
     Assert.True(IsIdentical(
                     S2LatLng.Longitude(new S2Point(1.0, -0.0, 0.0)).Radians, +0.0));
     Assert.True(IsIdentical(
                     S2LatLng.Longitude(new S2Point(-1.0, -0.0, 0.0)).Radians, S2.M_PI));
     Assert.True(IsIdentical(
                     S2LatLng.Longitude(new S2Point(-0.0, 0.0, 1.0)).Radians, +0.0));
     Assert.True(IsIdentical(
                     S2LatLng.Longitude(new S2Point(-0.0, -0.0, 1.0)).Radians, +0.0));
 }