Changeset 3002 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Nov 26, 2004, 9:41:29 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/vector.cc
r3000 r3002 846 846 847 847 /** 848 \brief Creates a new Be nzierCurve849 */ 850 Be nzierCurve::BenzierCurve (void)848 \brief Creates a new BezierCurve 849 */ 850 BezierCurve::BezierCurve (void) 851 851 { 852 852 nodeCount = 0; … … 862 862 863 863 /** 864 \brief Deletes a Be nzierCurve.864 \brief Deletes a BezierCurve. 865 865 It does this by freeing all the space taken over from the nodes 866 866 */ 867 Be nzierCurve::~BenzierCurve (void)867 BezierCurve::~BezierCurve (void) 868 868 { 869 869 PathNode* tmpNode; … … 878 878 879 879 /** 880 \brief adds a new Node to the be nzier Curve880 \brief adds a new Node to the bezier Curve 881 881 \param newNode a Vector to the position of the new node 882 882 */ 883 void Be nzierCurve::addNode(const Vector& newNode)883 void BezierCurve::addNode(const Vector& newNode) 884 884 { 885 885 PathNode* tmpNode; … … 901 901 \param t The position on the Curve (0<=t<=1) 902 902 */ 903 void Be nzierCurve::calcPos(float t)903 void BezierCurve::calcPos(float t) 904 904 { 905 905 if (nodeCount <=4) … … 951 951 \return a Vector to the calculated position 952 952 */ 953 Vector Be nzierCurve::getPos() const953 Vector BezierCurve::getPos() const 954 954 { 955 955 return curvePoint; … … 961 961 \return a Vector to the calculated position 962 962 */ 963 Vector Be nzierCurve::getPos(float t)963 Vector BezierCurve::getPos(float t) 964 964 { 965 965 calcPos(t); -
orxonox/trunk/src/vector.h
r3000 r3002 151 151 152 152 153 //! Be nzier Curve153 //! Bezier Curve 154 154 /** 155 Class to handle be nzier curves in 3-dimesnsional space155 Class to handle bezier curves in 3-dimesnsional space 156 156 157 157 needed for the Tracking system in OrxOnoX. 158 158 */ 159 class Be nzierCurve159 class BezierCurve 160 160 { 161 161 private: … … 174 174 175 175 public: 176 Be nzierCurve (void);177 ~Be nzierCurve (void);176 BezierCurve (void); 177 ~BezierCurve (void); 178 178 void addNode (const Vector& newNode); 179 179 void calcPos (float t);
Note: See TracChangeset
for help on using the changeset viewer.