Changeset 3327 in orxonox.OLD for orxonox/branches/parenting/src/curve.h
- Timestamp:
- Jan 3, 2005, 6:57:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/curve.h
r3322 r3327 13 13 14 14 15 //! An abstract class to handle curves. 15 //! An abstract class to handle curves. Needed for the Tracking system in orxonox. 16 16 class Curve 17 17 { … … 28 28 int number; //!< The N-th node of this curve. 29 29 float factor; //!< Curve specific multiplier factor. 30 Vector vFactor; //!< A Vector-factor for multipliing. 30 31 Vector position; //!< Vector Pointung to this curve-point. 31 32 PathNode* next; //!< Pointer to the next Node. … … 46 47 }; 47 48 48 //! Bezier Curve49 //! Class to handle bezier curves in 3-dimesnsional space 49 50 /** 50 Class to handle bezier curves in 3-dimesnsional space 51 52 needed for the Tracking system in OrxOnoX. 51 This Curve is good, for Fast Interaction. If you want to change it during the game, go on. 52 !!be aware!! BezierCurves only flow through their first and last Node. Their Tangents at those Points a directed to the second and second-last Point. 53 53 */ 54 54 class BezierCurve : public Curve … … 81 81 }; 82 82 83 //! Uniform Point Curve-class 84 /** 85 A UPoint Curve is a A Curve, that flows through all the nodes given it. 86 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. 87 88 This Curve is very erattic, so i do not recommend to use it. 89 */ 90 class UPointCurve : public Curve 91 { 92 private: 93 void rebuild(void); 94 public: 95 UPointCurve(void); 96 UPointCurve(int derivation); 97 ~UPointCurve(void); 98 void init(void); 99 100 Vector calcPos(float t); 101 Vector calcDir(float t); 102 Quaternion calcQuat(float t); 103 104 Vector getPos(void) const; 105 }; 83 106 84 107 #endif /* _CURVE_H */
Note: See TracChangeset
for help on using the changeset viewer.