Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3349 in orxonox.OLD for orxonox/branches/parenting/src/curve.cc


Ignore:
Timestamp:
Jan 6, 2005, 3:39:28 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/parenting: :TrackManager: curves are now being added in a C1-static maner (at least for bezier).

File:
1 edited

Legend:

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

    r3348 r3349  
    4646}
    4747
     48/**
     49   \brief Finds a Node by its Number, and returns its Position
     50   \param nodeToFind the n'th node in the List of nodes
     51   \returns A Vector to the Position of the Node.
     52*/
     53Vector Curve::getNode(unsigned int nodeToFind)
     54{
     55  if (nodeToFind > this->nodeCount)
     56    return Vector(0,0,0);
     57  PathNode* tmpNode = this->firstNode;
     58  for (int i = 1; i < nodeToFind; i++)
     59    tmpNode = tmpNode->next;
     60  return tmpNode->position;
     61}
    4862
    4963///////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.