WorldWindAndroid
WorldWindAndroid copied to clipboard
Sector minimum bounds check
Description
The Sector class doesn't check for minimum Lat/Long in the constructor. It does check the maximum values.
Steps to Reproduce
- Create a sector with minimum Lat/Long less than the -90, -180
Expected behavior:
The maximum values are clamped using Location.clampLatitude
or Location.clampLongitude
, I think the minimum value should be clamped to the expected range.
Actual behavior: You can get minimum latitudes and longitudes outside of the expected range.
Reproduces how often: 100%
Operating System and Version
Android 7.1.1