Changeset 12412 for trunk/FACT++


Ignore:
Timestamp:
11/06/11 01:00:59 (13 years ago)
Author:
tbretz
Message:
Changed the coordinates such that the camera turns around its center not around pixel 0
File:
1 edited

Legend:

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

    r12397 r12412  
    10641064                 for (int k=0;k<2;k++)
    10651065                     cVertex[k] = hexcoords[j][k]*hexRadius + pixelsCoords[i][k];
     1066
     1067                 cVertex[1] -= hexRadius;
     1068
    10661069                 bool found = false;
    10671070                 for (int k=0;k<numVertices;k++)
     
    10911094                 for (int k=0;k<2;k++)
    10921095                     cVertex[k] = hexcoords[j][k]*hexRadius + pixelsCoords[i][k];
     1096
     1097                 cVertex[1] -= hexRadius;
     1098
    10931099                 for (int k=0;k<numVertices;k++)
    10941100                 {
Note: See TracChangeset for help on using the changeset viewer.