Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2007, 11:48:16 PM (17 years ago)
Author:
nicolasc
Message:

minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/util/track/action_box.cc

    r10642 r10645  
    127127bool ActionBox::isPointInBox( const Vector & pos )
    128128{
    129   bool result = true;
     129  bool result = true; //TODO remove
    130130  for ( int i = 0; i<6; i++ )
    131131  {
    132132    if ( planes[i].distancePoint( pos ) < 0 )
    133133    {
    134       result = false;
     134      result = false; // TODO return false;
    135135      printf("PLANE %i FAILED %f\n", i, planes[i].distancePoint( pos ) );
    136136    }
    137137  }
    138  
    139   return result;
     138  return result;  //TODO return true;
    140139}
    141140
     
    146145{
    147146  Vector p[7];
    148  
     147
    149148  p[0] = Vector( 0.0, height_2, -width_2 );
    150149  p[1] = Vector( 0.0, height_2, width_2 );
     
    154153  p[5] = Vector( depth, -height_2, width_2 );
    155154  p[6] = Vector( depth, -height_2, -width_2 );
    156  
     155
    157156  for ( int i = 0; i<7; i++ )
    158157  {
     
    160159    p[i] += track->getTrackNode()->getAbsCoor();
    161160  }
    162  
     161
    163162  planes[0] = Plane( p[1], p[0], p[2] );
    164163  planes[1] = Plane( p[3], p[4], p[5] );
Note: See TracChangeset for help on using the changeset viewer.