ofrohn/d3-celestial

horizontal.inverse function missing a sign correction?

FinduschkaLi opened this issue · 0 comments

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.