Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 25, 2005, 9:01:08 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: added the last functions needed to get the heigt from the terrain. test phase now

File:
1 edited

Legend:

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

    r4929 r4956  
    3636
    3737    void buildHashTable(QuadtreeNode** nodeList, int* index);
     38    inline Rectangle* getDimension() { return this->pDimension; }
     39
    3840    bool includesPoint(const Vector& v);
    39     sTriangleExt* getTriangle(const Vector& position);
    40     float getHeight(const Vector& position);
    41     inline Rectangle* getDimension() { return this->pDimension; }
     41    sTriangleExt* getTriangle(const Vector& position) const;
     42    float getHeight(const Vector& position) const;
     43
    4244
    4345    void drawTree() const;
     
    5254    Rectangle* getDimFromModel();
    5355
    54     bool sameSide(const Vector& p1, const Vector&p2, const Vector& a, const Vector& b);
    55     bool pointInTriangle(const Vector&p, const Vector& a, const Vector& b, const Vector& c);
     56    bool sameSide(const Vector& p1, const Vector&p2, const Vector& a, const Vector& b) const;
     57    bool pointInTriangle(const Vector&p, const Vector& a, const Vector& b, const Vector& c) const;
    5658
    5759  protected:
Note: See TracChangeset for help on using the changeset viewer.