Commit 856b5c48 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

make some functions in knotvector const

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20583 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5aa3a7b8
...@@ -97,10 +97,11 @@ public: ...@@ -97,10 +97,11 @@ public:
void createKnots(unsigned int _splineDeg, unsigned int _dim); void createKnots(unsigned int _splineDeg, unsigned int _dim);
inline std::vector< Scalar >& getKnotvector() {return knots_;} inline std::vector< Scalar >& getKnotvector() {return knots_;}
inline const std::vector< Scalar >& getKnotvector() const { return knots_; }
inline unsigned int size() {return knots_.size();} inline unsigned int size() const {return knots_.size();}
inline Scalar getKnot(unsigned int _index) { inline Scalar getKnot(unsigned int _index) const {
assert(_index < knots_.size()); assert(_index < knots_.size());
return knots_.at(_index); return knots_.at(_index);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment