WorldWindAndroid icon indicating copy to clipboard operation
WorldWindAndroid copied to clipboard

Sector minimum bounds check

Open zglueck opened this issue 7 years ago • 0 comments

Description

The Sector class doesn't check for minimum Lat/Long in the constructor. It does check the maximum values.

Steps to Reproduce

  1. 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

Additional Information

zglueck avatar Aug 25 '17 21:08 zglueck