Ejemplo n.º 1
0
 public void NormaliseDoesNotChokeOnStupidArea()
 {
     var ext = new Extent(-1e38, -90, -1.0001e38, 90);
     ext.Normalised();
 }
Ejemplo n.º 2
0
 public void NormalisePreservesAspectRatioAbove360()
 {
     var ext = new Extent(-200, -90, 200, 90);
     var ext_normalized = ext.Normalised();
     Assert.AreEqual(new Extent(-180, -81, 180, 81), ext_normalized);
 }
Ejemplo n.º 3
0
 public void NormalisePutsNonCrossingEastAreaInto180()
 {
     var ext = new Extent(190, -90, 220, 90);
     var ext_normalized = ext.Normalised();
     Assert.AreEqual(new Extent(-170, -90, -140, 90), ext_normalized);
 }
Ejemplo n.º 4
0
 public void NormalisePutWestCrossingAreaInto0To360()
 {
     var ext = new Extent(-220, -90, -170, 90);
     var ext_normalized = ext.Normalised();
     Assert.AreEqual(new Extent(140, -90, 190, 90), ext_normalized);
 }