using a SpheroidCalculator with Spheroid.Wgs84, calculating the orthodromic line for
lat1, lon1 = 30, 176,
lat2, lon2 = -30, -3.5
fails with an ArithmeticException, while calculating it for
lat1, lon1 = 30, 175,
lat2, lon2 = -30, -3.5
runs just fine. I have some unit tests for my app that use random data and fail occasionally. It seems that lat1 = -lat2 seems to be a neccessary but not sufficient condition for failure.
Hi,
using a SpheroidCalculator with Spheroid.Wgs84, calculating the orthodromic line for
lat1, lon1 = 30, 176, lat2, lon2 = -30, -3.5
fails with an ArithmeticException, while calculating it for
lat1, lon1 = 30, 175, lat2, lon2 = -30, -3.5
runs just fine. I have some unit tests for my app that use random data and fail occasionally. It seems that lat1 = -lat2 seems to be a neccessary but not sufficient condition for failure.