-
-
Save ezefranca/6686afeaf5798b5c6bae939c93fd1207 to your computer and use it in GitHub Desktop.
Calculating MKMapCamera's altitude for a distance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let altitude = distance*tan(M_PI*(75.0/180.0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment