Ignore:
Timestamp:
05/07/14 16:44:53 (11 years ago)
Author:
tbretz
Message:
It is nicer to have teh distance between two neighbors as 1. Reinvented $.conv.
Location:
trunk/FACT++/www/viewer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/viewer/index.html

    r17798 r17800  
    491491<tr><td>$.neighbors</td><td>Array of 1440 arrays each containing the corresponding neighbors</td></tr>
    492492<tr><td>$.map</td><td>Array of 1440 entries (software index) containing the hardware indices.</td></tr>
    493 <tr><td>$.geom</td><td>Array of 1440 entries. Each an array with two entries, x and y in degree. The pixel diameter is assumed to be 0.1111&deg;.</td></tr>
    494 <tr><td>$.dist(i,j)</td><td>Calculated the distance of two pixels in degree</td></tr>
     493<tr><td>$.geom</td><td>Array of 1440 entries. Each an array with two entries, x and y. The distance between two neighbors is 1.</td></tr>
     494<tr><td>$.dist(i,j)</td><td>Calculated the distance of two pixels in degree.</td></tr>
     495<tr><td>$.conv</td><td>Conversion factor to convert geom and dist to degree.</td></tr>
    495496</table>
    496497
  • trunk/FACT++/www/viewer/internal.js

    r17799 r17800  
    14461446$.geom = (function()
    14471447{
    1448     var convx = 0.1111;
    1449     var convy = convx*Math.sqrt(3)/2;
     1448    var s32 = Math.sqrt(3)/2;
    14501449
    14511450    function Position(s, ring, i)
     
    14661465           return;
    14671466
    1468         return [ x*convx, y*convy ];
     1467        return [ x, y*s32 ];
    14691468    }
    14701469
     
    14881487    }
    14891488
    1490     geom[map[1438]] = [ 7*convx, -22*convy ];
    1491     geom[map[1439]] = [ 7*convx,  22*convy ];
     1489    geom[map[1438]] = [ 7, -22*s32 ];
     1490    geom[map[1439]] = [ 7,  22*s32 ];
    14921491
    14931492    return geom;
     
    15011500    return Math.sqrt(dx*dx + dy*dy);
    15021501}
     1502
     1503$.conv = 0.1111;
Note: See TracChangeset for help on using the changeset viewer.