public void AtanhTest() { double d = .7d; double expected = .86730d; double actual = GaussKruger.Atanh(d); Assert.That(actual, Is.EqualTo(expected).Within(.000001)); }
public void GridToGeodeticTest() { var coordinate = new GridCoordinate { X = 7094946, Y = 1693701, Projection = SwedishProjections.RT90_25GonV }; var expected = new GeodeticCoordinate { Latitude = 63.90786d, Longitude = 19.75247d }; var actual = GaussKruger.GridToGeodetic(coordinate); Assert.IsTrue(expected.Equals(actual)); }