diff options
| author | jules <jules@okfoc.us> | 2013-12-17 09:53:58 -0500 |
|---|---|---|
| committer | jules <jules@okfoc.us> | 2013-12-17 09:53:58 -0500 |
| commit | afce8a28e780846e2ac0e737d6ef180f5896aba1 (patch) | |
| tree | 00c2794228f9aef8c2af51fc6563d2af93dcb9ce | |
| parent | c18321ceedd7be750f5789109c8503e4a36f39bf (diff) | |
fix
| -rw-r--r-- | js/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ function deg(n){ return n*180/PI } function rad(n){ return n*PI/180 } function pixel(x,y){ return 4*(y*w+x) } function mod(n,m){ return n-(m * floor(n/m)) } -function dist(x0,y0,x1,y1){ return sqrt(pow(x1-x0,2)+pow(y1-y0,2) } +function dist(x0,y0,x1,y1){ return sqrt(pow(x1-x0,2)+pow(y1-y0,2)) } function angle(x0,y0,x1,y1){ return atan2(y1-y0,x1-x0) } function step (n,a,b) { |
