Changeset 3217 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Dec 18, 2004, 3:48:43 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/curve.cc
r3194 r3217 59 59 /** 60 60 \brief Deletes a BezierCurve. 61 61 62 It does this by freeing all the space taken over from the nodes 62 63 */ … … 110 111 } 111 112 113 /** 114 \brief Calulates the direction of the Curve at time t. 115 \param The time at which to evaluate the curve. 116 \returns The vvaluated Vector. 117 */ 112 118 Vector BezierCurve::calcDir (float t) 113 119 { … … 133 139 } 134 140 141 /** 142 \brief Calculates the Quaternion needed for our rotations 143 \param t The time at which to evaluate the cuve. 144 \returns The evaluated Quaternion. 145 */ 135 146 Quaternion BezierCurve::calcQuat (float t) 136 147 { … … 148 159 } 149 160 150 161 /** 162 \brief ncr-calculator, did not find an other method 163 \todo a c++ variante to do this 164 */ 151 165 int ncr(int n, int i) 152 166 { -
orxonox/trunk/src/curve.h
r3194 r3217 12 12 13 13 14 14 //! An abstract class to handle curves. 15 15 class Curve 16 16 { 17 17 protected: 18 int nodeCount; 19 Vector curvePoint; 20 float localTime; //!< if the time of one point is asked more than once the programm will not calculate it again.18 int nodeCount; //!< The count of nodes the Curve has. 19 Vector curvePoint; //!< The point on the Cureve at a local Time. 20 float localTime; //!< If the time of one point is asked more than once the programm will not calculate it again. 21 21 22 //! Handles the curve-points (dynamic List) 22 23 struct PathNode 23 24 { 24 int number; 25 Vector position; 26 PathNode* next; 25 int number; //!< The N-th node of this curve. 26 Vector position; //!< Vector Pointung to this curve-point. 27 PathNode* next; //!< Pointer to the next Node. 27 28 }; 28 29 29 PathNode* firstNode; 30 PathNode* currentNode; 30 PathNode* firstNode; //!< First node of the curve. 31 PathNode* currentNode; //!< The node we are working with (the Last node). 31 32 32 33 public: 33 34 34 void addNode (const Vector& newNode); 35 35
Note: See TracChangeset
for help on using the changeset viewer.