Changeset 3019 in orxonox.OLD for orxonox/branches/bezierTrack/src/curve.h
- Timestamp:
- Nov 28, 2004, 1:46:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/bezierTrack/src/curve.h
r3018 r3019 12 12 13 13 14 //! Bezier Curve 15 /** 16 Class to handle bezier curves in 3-dimesnsional space 17 18 needed for the Tracking system in OrxOnoX. 19 */ 20 class BezierCurve 14 15 class Curve 21 16 { 22 pr ivate:17 protected: 23 18 int nodeCount; 24 19 Vector curvePoint; 25 20 26 21 struct PathNode 27 22 { … … 34 29 PathNode* currentNode; 35 30 36 int ncr(int n, int i);31 public: 37 32 33 void addNode (const Vector& newNode); 34 35 }; 36 37 //! Bezier Curve 38 /** 39 Class to handle bezier curves in 3-dimesnsional space 40 41 needed for the Tracking system in OrxOnoX. 42 */ 43 class BezierCurve : public Curve 44 { 45 private: 46 // all from Curve-Class 38 47 public: 39 48 BezierCurve (void); 40 49 ~BezierCurve (void); 41 void addNode (const Vector& newNode); 42 Vector calcPos (float t); 43 Vector calcDir (float t); 50 virtual Vector calcPos (float t); 51 virtual Vector calcDir (float t); 44 52 45 53 Vector getPos () const; 46 54 }; 47 55 56 int ncr(int n, int i); 48 57 49 58
Note: See TracChangeset
for help on using the changeset viewer.