Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2005, 2:33:32 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now the right quadtree is selected, position to quadtreeNode mapping works

File:
1 edited

Legend:

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

    r4918 r4920  
    357357
    358358
     359bool QuadtreeNode::includesPoint(const Vector& v)
     360{
     361  Vector center = *this->pDimension->getCenter();
     362  float ax = this->pDimension->getAxis();
     363  if( v.x > center.x - ax && v.x < center.x + ax &&
     364      v.z > center.z - ax && v.z < center.z + ax )
     365    printf("THIS POINT IS INSIDE :) \n");
     366  else
     367    printf("POINT IS NOT INSIEDE\n");
     368}
     369
    359370/**
    360371 *  draws the debug quadtree boxes around the model
Note: See TracChangeset for help on using the changeset viewer.