webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit 0acebc39dd6c936dcecde95feb322030352bd869
parent 7fa5c1bfb0b1c5d8aad66dba83ebcf0110b8fcc6
Author: Sean Lynch <seanl@literati.org>
Date:   Sat, 10 Mar 2012 12:38:27 -0800

Remove errant semicolon

Diffstat:
Msun.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sun.js b/sun.js @@ -80,7 +80,7 @@ function Sun() { var obl = lat - Math.PI / 2; var points = []; var deg, H, equ, x, y, px, py; - for (deg = 0; deg < 360; deg++) { + for (deg = 0; deg < 360; deg += 2) { H = deg * Math.PI / 180.0; equ = this.ecl_to_equ(H, alt, obl); x = equ.ra * 180.0 / Math.PI; @@ -214,4 +214,4 @@ function Sun() { this.aberration_low = function(R) { return -_lk4 / R }; -}; +}