Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/math
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/math
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/curve.cc
r4472 r4746 36 36 \brief default constructor for a Curve 37 37 */ 38 Curve::Curve( void)38 Curve::Curve() 39 39 { 40 40 nodeCount = 0; … … 128 128 \brief Outputs information about the state of this Curve 129 129 */ 130 void Curve::debug( void)130 void Curve::debug() 131 131 { 132 132 printf("<<-------------------------------\n"); … … 150 150 \brief Creates a new BezierCurve 151 151 */ 152 BezierCurve::BezierCurve ( void)152 BezierCurve::BezierCurve () 153 153 { 154 154 this->derivation = 0; … … 170 170 It does this by freeing all the space taken over from the nodes 171 171 */ 172 BezierCurve::~BezierCurve( void)172 BezierCurve::~BezierCurve() 173 173 { 174 174 PathNode* tmpNode; … … 187 187 \brief Rebuilds a Curve 188 188 */ 189 void BezierCurve::rebuild( void)189 void BezierCurve::rebuild() 190 190 { 191 191 PathNode* tmpNode = firstNode; … … 291 291 \return a Vector to the calculated position 292 292 */ 293 Vector BezierCurve::getPos( void) const293 Vector BezierCurve::getPos() const 294 294 { 295 295 return curvePoint; -
orxonox/trunk/src/lib/math/curve.h
r4597 r4746 31 31 32 32 public: 33 Curve( void);33 Curve(); 34 34 35 35 void addNode(const Vector& newNode); … … 37 37 Vector getNode(unsigned int nodeToFind); 38 38 /** \returns the count of nodes in this curve */ 39 inline int getNodeCount( void) const { return this->nodeCount; };39 inline int getNodeCount() const { return this->nodeCount; }; 40 40 /** \returns the directional Curve */ 41 Curve* getDirCurve( void) const { return this->dirCurve; };41 Curve* getDirCurve() const { return this->dirCurve; }; 42 42 43 43 /** \param t the value on the curve [0-1] \returns Vector to the position */ … … 51 51 52 52 // DEBUG 53 void debug( void);53 void debug(); 54 54 55 55 private: 56 56 /** \brief rebuilds the curve */ 57 virtual void rebuild( void) = 0;57 virtual void rebuild() = 0; 58 58 59 59 protected: … … 78 78 { 79 79 public: 80 BezierCurve( void);80 BezierCurve(); 81 81 BezierCurve(int derivation); 82 virtual ~BezierCurve( void);82 virtual ~BezierCurve(); 83 83 84 84 virtual Vector calcPos(float t); … … 88 88 89 89 90 Vector getPos( void) const;90 Vector getPos() const; 91 91 92 92 private: 93 void rebuild( void);93 void rebuild(); 94 94 }; 95 95 -
orxonox/trunk/src/lib/math/vector.cc
r4611 r4746 59 59 \brief Outputs the values of the Vector 60 60 */ 61 void Vector::debug( void) const61 void Vector::debug() const 62 62 { 63 63 PRINT(0)("Vector Debug information\n"); … … 391 391 \brief outputs some nice formated debug information about this quaternion 392 392 */ 393 void Quaternion::debug( void)393 void Quaternion::debug() 394 394 { 395 395 PRINT(0)("Quaternion Debug Information\n");
Note: See TracChangeset
for help on using the changeset viewer.