Changeset 17797 for trunk/FACT++/www
- Timestamp:
- 05/07/14 16:33:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/viewer/internal.js
r17791 r17797 1452 1452 switch (s) 1453 1453 { 1454 case 1: x = ring - i/2; y = - i; break;1454 case 1: x = ring - i/2; y = - i; break; 1455 1455 case 2: x = ring/2 - i; y = -ring ; break; 1456 1456 case 3: x = -ring/2 - i/2; y = -ring + i; break; 1457 case 4: x = -ring + i/2; y = + i; break;1458 case 5: x = -ring/2 + i; y = ring ; break;1459 case 0: x = ring/2 + i/2; y = ring - i; break;1457 case 4: x = -ring + i/2; y = + i; break; 1458 case 5: x = -ring/2 + i; y = ring ; break; 1459 case 0: x = ring/2 + i/2; y = ring - i; break; 1460 1460 } 1461 1462 var d = x*x + y*y*3/4; 1463 if (d - x > 395.75) 1464 return; 1465 1461 1466 return [ x, y*s32 ]; 1462 1467 } … … 1473 1478 { 1474 1479 var pos = Position(s, ring, i); 1475 var d = Math.sqrt(pos[0]*pos[0]+pos[1]*pos[1]); 1476 if (d - pos.x > 395.75) 1480 if (pos===undefined) 1477 1481 continue; 1478 1482 … … 1495 1499 return Math.sqrt(dx*dx + dy*dy); 1496 1500 } 1501 1502 // Degree per geometry unit 1503 $.conv = 0.111083657946437597;
Note:
See TracChangeset
for help on using the changeset viewer.