Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4472 in orxonox.OLD for orxonox/trunk/src/lib/math/curve.cc


Ignore:
Timestamp:
Jun 2, 2005, 2:12:23 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: curve doxygen, and redesign

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/math/curve.cc

    r3595 r4472  
    6464}
    6565
     66/**
     67   \brief adds a new Node to the bezier Curve
     68   \param newNode a Vector to the position of the new node
     69   \param insertPosition after the n-th node the new node will be inserted
     70*/
    6671void Curve::addNode(const Vector& newNode, unsigned int insertPosition)
    6772{
     
    253258/**
    254259   \brief Calulates the direction of the Curve at time t.
    255    \param The time at which to evaluate the curve.
    256    \returns The vvaluated Vector.
     260   \param t The time at which to evaluate the curve.
     261   \returns The valuated Vector.
    257262*/
    258263Vector BezierCurve::calcDir (float t)
    259264{
    260   return dirCurve->calcPos(t);
    261 }
    262 
     265  return this->dirCurve->calcPos(t);
     266}
     267
     268/**
     269   \brief Calulates the acceleration (second derivate) of the Curve at time t.
     270   \param t The time at which to evaluate the curve.
     271   \returns The valuated Vector.
     272*/
    263273Vector BezierCurve::calcAcc (float t)
    264274{
    265   return dirCurve->dirCurve->calcPos(t);
     275  return this->dirCurve->getDirCurve()->calcPos(t);
    266276}
    267277
Note: See TracChangeset for help on using the changeset viewer.