Changeset 4472 in orxonox.OLD for orxonox/trunk/src/lib/math/curve.cc
- Timestamp:
- Jun 2, 2005, 2:12:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/curve.cc
r3595 r4472 64 64 } 65 65 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 */ 66 71 void Curve::addNode(const Vector& newNode, unsigned int insertPosition) 67 72 { … … 253 258 /** 254 259 \brief Calulates the direction of the Curve at time t. 255 \param The time at which to evaluate the curve.256 \returns The v valuated Vector.260 \param t The time at which to evaluate the curve. 261 \returns The valuated Vector. 257 262 */ 258 263 Vector BezierCurve::calcDir (float t) 259 264 { 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 */ 263 273 Vector BezierCurve::calcAcc (float t) 264 274 { 265 return dirCurve->dirCurve->calcPos(t);275 return this->dirCurve->getDirCurve()->calcPos(t); 266 276 } 267 277
Note: See TracChangeset
for help on using the changeset viewer.