Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3320 in orxonox.OLD for orxonox/branches/parenting/src/curve.h


Ignore:
Timestamp:
Jan 3, 2005, 12:23:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/parenting: curve-optimizations. Now calculation should be about 5 times faster. especially for long tracks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/curve.h

    r3319 r3320  
    2525  {
    2626    int number;          //!< The N-th node of this curve.
     27    float factor;        //!< Curve specific multiplier factor.
    2728    Vector position;     //!< Vector Pointung to this curve-point.
    2829    PathNode* next;      //!< Pointer to the next Node.
     
    3233  PathNode* currentNode; //!< The node we are working with (the Last node).
    3334
     35 private:
     36  virtual void rebuild(void) = 0;
    3437 public:
    3538  void addNode (const Vector& newNode);
     
    4649{
    4750 private:
    48   // all from Curve-Class
     51  void rebuild(void);
    4952 public:
    50   BezierCurve (void);
    51   ~BezierCurve (void);
    52   Vector calcPos (float t);
    53   Vector calcDir (float t);
    54   Quaternion calcQuat (float t);
     53  BezierCurve(void);
     54  ~BezierCurve(void);
     55
     56  Vector calcPos(float t);
     57  Vector calcDir(float t);
     58  Quaternion calcQuat(float t);
    5559 
    5660 
     
    7074
    7175
    72 int ncr(int n, int i);
    73 
    74 
    7576#endif /* _CURVE_H */
Note: See TracChangeset for help on using the changeset viewer.