public void constructor() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(3.0, obj.A); Assert.Equal(9.0 / 4.0, obj.B); obj = new SpheroidEquatorialPolar(4.0, 5.0); Assert.Equal(4.0, obj.A); Assert.Equal(5.0, obj.B); }
public void constructor() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(3.0, obj.A); Assert.Equal(9.0 / 4.0, obj.B); obj = new SpheroidEquatorialPolar(4.0, 5.0); Assert.Equal(4.0, obj.A); Assert.Equal(5.0, obj.B); }
public void MapProjectionsWorkingManualClarkeLatitudeTableTest() { var clarke1866 = new SpheroidEquatorialPolar(6378206.4, 6356583.8); var projection = new Mercator(0, 1, Vector2.Zero, new SpheroidEquatorialInvF(1.0, clarke1866.InvF)); // it has a major axis of 1.0 // check all the Y coordinates Assert.AreEqual(3.12454, projection.TransformValue(new GeographicCoordinate(1.48352986, 0)).Y, 0.001); // 85 degrees N Assert.AreEqual(1.50031, projection.TransformValue(new GeographicCoordinate(1.13446401, 0)).Y, 0.001); // 65 degrees N Assert.AreEqual(0.87658, projection.TransformValue(new GeographicCoordinate(0.785398163, 0)).Y, 0.001); // 45 degrees N Assert.AreEqual(0.44801, projection.TransformValue(new GeographicCoordinate(0.436332313, 0)).Y, 0.001); // 25 degrees N Assert.AreEqual(0.26309, projection.TransformValue(new GeographicCoordinate(0.261799388, 0)).Y, 0.001); // 15 degrees N Assert.AreEqual(0.08679, projection.TransformValue(new GeographicCoordinate(0.0872664626, 0)).Y, 0.001); // 5 degrees N Assert.AreEqual(0, projection.TransformValue(new GeographicCoordinate(0, 0)).Y, 0.001); // 0 degrees }
public void property_e2sq() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(obj.ESecond * obj.ESecond, obj.ESecondSquared, 15); }
public void property_e2() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(Math.Sqrt((0.4375 / (1 - 0.4375))), obj.ESecond); }
public void property_esq() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(obj.E * obj.E, obj.ESquared, 10); }
public void property_e() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(Math.Sqrt(7.0 / 16.0), obj.E); }
public void property_invf() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(4.0, obj.InvF); }
public void property_b() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(9.0 / 4.0, obj.B); }
public void property_e2sq() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(obj.ESecond * obj.ESecond, obj.ESecondSquared, 15); }
public void property_e2() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(Math.Sqrt((0.4375 / (1 - 0.4375))), obj.ESecond); }
public void property_esq() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(obj.E * obj.E, obj.ESquared, 10); }
public void property_e() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(Math.Sqrt(7.0 / 16.0), obj.E); }
public void property_invf() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(4.0, obj.InvF); }
public void property_b() { var obj = new SpheroidEquatorialPolar(3.0, 9.0 / 4.0); Assert.Equal(9.0 / 4.0, obj.B); }
public void MapProjectionsWorkingManualClarkeLatitudeTableTest() { var clarke1866 = new SpheroidEquatorialPolar(6378206.4, 6356583.8); var projection = new Mercator(0, 1, Vector2.Zero, new SpheroidEquatorialInvF(1.0, clarke1866.InvF)); // it has a major axis of 1.0 // check all the Y coordinates Assert.AreEqual(3.12454, projection.TransformValue(new GeographicCoordinate(1.48352986, 0)).Y, 0.001); // 85 degrees N Assert.AreEqual(1.50031, projection.TransformValue(new GeographicCoordinate(1.13446401, 0)).Y, 0.001); // 65 degrees N Assert.AreEqual(0.87658, projection.TransformValue(new GeographicCoordinate(0.785398163, 0)).Y, 0.001); // 45 degrees N Assert.AreEqual(0.44801, projection.TransformValue(new GeographicCoordinate(0.436332313, 0)).Y, 0.001); // 25 degrees N Assert.AreEqual(0.26309, projection.TransformValue(new GeographicCoordinate(0.261799388, 0)).Y, 0.001); // 15 degrees N Assert.AreEqual(0.08679, projection.TransformValue(new GeographicCoordinate(0.0872664626, 0)).Y, 0.001); // 5 degrees N Assert.AreEqual(0, projection.TransformValue(new GeographicCoordinate(0, 0)).Y, 0.001); // 0 degrees }