Changeset 3605 in orxonox.OLD for orxonox/branches/levelloader/src/lib/math/curve.h
- Timestamp:
- Mar 18, 2005, 11:52:15 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/lib/math/curve.h
r3499 r3605 13 13 14 14 //! An Enumerator that defines what sort of Curves are availible 15 enum CurveType {BEZIERCURVE , UPOINTCURVE};15 enum CurveType {BEZIERCURVE}; 16 16 17 17 … … 38 38 PathNode* currentNode; //!< The node we are working with (the Last node). 39 39 40 40 41 private: 41 42 virtual void rebuild(void) = 0; 42 43 public: 44 Curve(void); 45 43 46 Curve* dirCurve; //!< The derivation-curve of this Curve. 44 47 void addNode(const Vector& newNode); … … 68 71 BezierCurve(void); 69 72 BezierCurve(int derivation); 70 ~BezierCurve(void); 71 void init(void); 73 virtual ~BezierCurve(void); 72 74 73 75 Vector calcPos(float t); … … 91 93 }; 92 94 93 //! Uniform Point Curve-class94 /**95 A UPoint Curve is a A Curve, that flows through all the nodes given it.96 The Algorithm to buid the curve is rather slow, but Painting and tracing along the curve has high speed, so do not change this curve during the Game.97 98 This Curve is very erattic, so i do not recommend to use it.99 */100 class UPointCurve : public Curve101 {102 private:103 void rebuild(void);104 public:105 UPointCurve(void);106 UPointCurve(int derivation);107 ~UPointCurve(void);108 void init(void);109 110 Vector calcPos(float t);111 Vector calcDir(float t);112 Vector calcAcc(float t);113 Quaternion calcQuat(float t);114 115 Vector getPos(void) const;116 };117 118 95 #endif /* _CURVE_H */
Note: See TracChangeset
for help on using the changeset viewer.