It seems the horizontal.inverse function should have something like:
if (Math.sin(az) > 0) {
ha = -ha;
}
after ha = Math.acos(ha);
I was trying to plot a circle around the zenith for a certain observer's location, which gave me only a half circle without this modification.
It seems the horizontal.inverse function should have something like: if (Math.sin(az) > 0) { ha = -ha; } after ha = Math.acos(ha); I was trying to plot a circle around the zenith for a certain observer's location, which gave me only a half circle without this modification.