Changeset 11804 for trunk/FACT++/gui


Ignore:
Timestamp:
08/05/11 23:02:51 (13 years ago)
Author:
tbretz
Message:
Replaced a rounded value for the hex coordinates by the analytical value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/BasicGlCamera.cc

    r11779 r11804  
    88
    99//Coordinates of an hexagon of radius 1 and center 0
    10 GLfloat hexcoords[6][2] = {{-0.577367206,  1},
    11                            { 0.577367206,  1},
    12                            { 1.154734411,  0},
    13                            { 0.577367206, -1},
    14                            {-0.577367206, -1},
    15                            {-1.154734411,  0}};
     10GLfloat hexcoords[6][2] = {{-1./sqrt(3.),  1},
     11                           { 1./sqrt(3.),  1},
     12                           { 2./sqrt(3.),  0},
     13                           { 1./sqrt(3.), -1},
     14                           {-1./sqrt(3.), -1},
     15                           {-2./sqrt(3.),  0}};
    1616
    1717
Note: See TracChangeset for help on using the changeset viewer.