Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 12, 2005, 11:25:53 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: debuged the getDimension funciton, some mods on rectangle class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc

    r4842 r4844  
    3434{
    3535   this->setClassID(CL_SPATIAL_SEPARATION, "SpatialSeparation");
    36 
     36   this->getDimension(model);
    3737}
    3838
     
    130130    if( pVertices[2] < minY)
    131131      minY = pVertices[2];
     132  }
     133  Rectangle* rect = new Rectangle();
    132134
    133     PRINTF(0)("Dimension Informationation: X: min/max %f/%f Y: min/max %f/%f\n", minX, maxX, minY, maxY);
    134   }
     135  rect->setCenter((maxX + minX) / 2.0f, 0.0f, (maxY + minY) / 2.0f);
     136
     137
     138  PRINTF(0)("Dimension Informationation: X: min/max %f/%f Y: min/max %f/%f\n", minX, maxX, minY, maxY);
    135139}
    136140
Note: See TracChangeset for help on using the changeset viewer.