|Apparent Angular Diameter of a Sphere at Any Distance|
PHP Program by Jay Tanner
This program computes the apparent angular diameter of a simple sphere at any distance from the eye as reckoned from the center or surface of the sphere.
The units are dimensionless, which means that
The default initial values are the mean radius of the moon and its mean geocentric distance from Earth, both in statute miles.
The simple formulas defined below take into account the actual forward curvature of the spherical surface towards the eye and 3D perspective with respect to the eye point rather than treating the sphere as a flat circular disk of the same radius as viewed from a distance. This is extremely important when viewing a sphere from relatively not too far away, such as a planet or the lunar surface as viewed from a spacecraft only a few thousands of kilometers or miles away rather than hundreds of thousands or more.
Only for great distances from the eye, can we treat a sphere as a flat circular disk, but for much closer distances, we need to account for the perspective to obtain the correct angular diameter. The equations for this are actually quite simple and come from elementary trigonometry translated in a physical context.
Jay Tanner - 2023