public void An_60Degree_CircleWith_111000M_RadiusShouldBeAboutTwoDegreesTall() { var circle = new Circle(60, 20, 111000); var bounds = circle.GetBounds(); var minLatError = Distance(59, bounds.MinLat); Assert.LessOrEqual(minLatError, 0.002); var maxLatError = Distance(61, bounds.MaxLat); Assert.LessOrEqual(maxLatError, 0.002); }
public void Bounds_A_111000_RadiusMeterEquatorialCircleShouldBeAboutTwoDegreesWide() { var circle = new Circle(0, 20, 111000); var bounds = circle.GetBounds(); var minLonError = Distance(19, bounds.MinLon); Assert.LessOrEqual(minLonError, 0.002); var maxLonError = Distance(21, bounds.MaxLon); Assert.LessOrEqual(maxLonError, 0.002); }
public void An_60Degree_CircleWith_111000M_RadiusShouldBeAboutOneDegreeWide() { var circle = new Circle(60, 20, 111000); var bounds = circle.GetBounds(); var minLonError = Distance(19.5, bounds.MinLon); Assert.LessOrEqual(minLonError, 0.002); var maxLonError = Distance(20.5, bounds.MaxLon); Assert.LessOrEqual(maxLonError, 0.002); }