| 208 | } |
| 209 | |
| 210 | void BSpline::updateControlPoints(const DenseMatrix &A) |
| 211 | { |
| 212 | if (A.cols() != coefficients.rows() || A.cols() != knotaverages.rows()) |
| 213 | throw Exception("BSpline::updateControlPoints: Incompatible size of linear transformation matrix."); |
| 214 | coefficients = A*coefficients; |
| 215 | knotaverages = A*knotaverages; |
| 216 | } |
| 217 | |
| 218 | void BSpline::checkControlPoints() const |
| 219 | { |