Changeset 17799 for trunk/FACT++


Ignore:
Timestamp:
05/07/14 16:39:04 (11 years ago)
Author:
tbretz
Message:
Removed conversion factor. Calculate geometry in degree instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/viewer/internal.js

    r17797 r17799  
    14461446$.geom = (function()
    14471447{
    1448     var s32 = Math.sqrt(3)/2;
     1448    var convx = 0.1111;
     1449    var convy = convx*Math.sqrt(3)/2;
     1450
    14491451    function Position(s, ring, i)
    14501452    {
     
    14641466           return;
    14651467
    1466         return [ x, y*s32 ];
     1468        return [ x*convx, y*convy ];
    14671469    }
    14681470
     
    14861488    }
    14871489
    1488     geom[map[1438]] = [ 7, -22*s32 ];
    1489     geom[map[1439]] = [ 7,  22*s32 ];
     1490    geom[map[1438]] = [ 7*convx, -22*convy ];
     1491    geom[map[1439]] = [ 7*convx,  22*convy ];
    14901492
    14911493    return geom;
     
    14991501    return Math.sqrt(dx*dx + dy*dy);
    15001502}
    1501 
    1502 // Degree per geometry unit
    1503 $.conv = 0.111083657946437597;
Note: See TracChangeset for help on using the changeset viewer.