Skip to content

Instantly share code, notes, and snippets.

@angeloped
Created July 13, 2022 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angeloped/3ea1642c2eca73c1e837fb05d3e4b199 to your computer and use it in GitHub Desktop.
Save angeloped/3ea1642c2eca73c1e837fb05d3e4b199 to your computer and use it in GitHub Desktop.
angular size function. calculation extracted from https://www.1728.org
/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