15 const int n_t = int(ts.rows());
16 assert(ts.cols() == 2);
18 result.resize(n_t, 1);
20 for (
int i = 0; i < n_t; ++i)
31 const int n_t = int(ts.rows());
32 assert(ts.cols() == 2);
34 result.resize(n_t, 2);
36 for (
int i = 0; i < n_t; ++i)
38 const double u = ts(i, 0);
39 const double v = ts(i, 1);
QuadraticBSpline spline_u_
void init(const std::array< double, 4 > &knots_u, const std::array< double, 4 > &knots_v)
void interpolate(const Eigen::MatrixXd &ts, Eigen::MatrixXd &result) const
void derivative(const Eigen::MatrixXd &ts, Eigen::MatrixXd &result) const
QuadraticBSpline spline_v_
void init(const std::array< double, 4 > &knots)
void interpolate(const Eigen::MatrixXd &ts, Eigen::MatrixXd &result) const
void derivative(const Eigen::MatrixXd &ts, Eigen::MatrixXd &result) const