Created
July 13, 2022 19:16
-
-
Save angeloped/3ea1642c2eca73c1e837fb05d3e4b199 to your computer and use it in GitHub Desktop.
angular size function. calculation extracted from https://www.1728.org
This file contains hidden or 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
/angsize.htm | |
// angular size https://www.1728.org/angsize.htm | |
function angular_size(sz, r){ | |
const raddeg = 57.2957795130823; | |
var arctan = Math.atan( (.5*sz) / r ); | |
return arctan * 2 * raddeg; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment