Lines Matching full:knots
71 * \param knots The spline's knot vector.
75 Spline(const OtherVectorType& knots, const OtherArrayType& ctrls) : m_knots(knots), m_ctrls(ctrls) {}
83 m_knots(spline.knots()), m_ctrls(spline.ctrls()) {}
86 * \brief Returns the knots of the underlying spline.
88 const KnotVectorType& knots() const { return m_knots; }
91 * \brief Returns the knots of the underlying spline.
190 static DenseIndex Span(typename SplineTraits<Spline>::Scalar u, DenseIndex degree, const typename SplineTraits<Spline>::KnotVectorType& knots);
202 * \param knots The underlying spline's knot vector.
204 static BasisVectorType BasisFunctions(Scalar u, DenseIndex degree, const KnotVectorType& knots);
216 const typename SplineTraits< Spline<_Scalar, _Dim, _Degree> >::KnotVectorType& knots)
219 if (u <= knots(0)) return degree;
220 const Scalar* pos = std::upper_bound(knots.data()+degree-1, knots.data()+knots.size()-degree-1, u);
221 return static_cast<DenseIndex>( std::distance(knots.data(), pos) - 1 );
229 const typename Spline<_Scalar, _Dim, _Degree>::KnotVectorType& knots)
234 const DenseIndex i = Spline::Span(u, degree, knots);
236 const KnotVectorType& U = knots;
272 return Spline::Span(u, degree(), knots());
344 return Spline::BasisFunctions(u, degree(), knots());
358 const KnotVectorType& U = spline.knots();