Changeset 17800 for trunk/FACT++/www/viewer
- Timestamp:
- 05/07/14 16:44:53 (11 years ago)
- Location:
- trunk/FACT++/www/viewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/viewer/index.html
r17798 r17800 491 491 <tr><td>$.neighbors</td><td>Array of 1440 arrays each containing the corresponding neighbors</td></tr> 492 492 <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°.</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> 495 496 </table> 496 497 -
trunk/FACT++/www/viewer/internal.js
r17799 r17800 1446 1446 $.geom = (function() 1447 1447 { 1448 var convx = 0.1111; 1449 var convy = convx*Math.sqrt(3)/2; 1448 var s32 = Math.sqrt(3)/2; 1450 1449 1451 1450 function Position(s, ring, i) … … 1466 1465 return; 1467 1466 1468 return [ x *convx, y*convy];1467 return [ x, y*s32 ]; 1469 1468 } 1470 1469 … … 1488 1487 } 1489 1488 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 ]; 1492 1491 1493 1492 return geom; … … 1501 1500 return Math.sqrt(dx*dx + dy*dy); 1502 1501 } 1502 1503 $.conv = 0.1111;
Note:
See TracChangeset
for help on using the changeset viewer.