Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3000 in orxonox.OLD for orxonox/trunk/src/vector.h


Ignore:
Timestamp:
Nov 26, 2004, 8:12:33 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: added a Benzier-Class: testing it with the new track-system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/vector.h

    r2551 r3000  
    149149};
    150150
     151
     152
     153//! Benzier Curve
     154/**
     155   Class to handle benzier curves in 3-dimesnsional space
     156   
     157   needed for  the Tracking system in OrxOnoX.
     158*/
     159class BenzierCurve
     160{
     161 private:
     162  int nodeCount;
     163  Vector curvePoint;
     164 
     165  struct PathNode
     166  {
     167    int number;
     168    Vector position;
     169    PathNode* next;
     170  };
     171
     172  PathNode* firstNode;
     173  PathNode* currentNode;
     174
     175 public:
     176  BenzierCurve (void);
     177  ~BenzierCurve (void);
     178  void addNode (const Vector& newNode);
     179  void calcPos (float t);
     180 
     181  Vector getPos () const;
     182  Vector getPos (float t);
     183};
     184
     185
     186
    151187#endif
Note: See TracChangeset for help on using the changeset viewer.