MCPcopy Create free account
hub / github.com/bgrimstad/splinter / getControlPoints

Method getControlPoints

src/bspline.cpp:177–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177DenseMatrix BSpline::getControlPoints() const
178{
179 int nc = coefficients.size();
180 DenseMatrix controlPoints(nc, numVariables + 1);
181
182 controlPoints.block(0, 0, nc, numVariables) = knotaverages;
183 controlPoints.block(0, numVariables, nc, 1) = coefficients;
184
185 return controlPoints;
186}
187
188void BSpline::setCoefficients(const DenseVector &coefficients)
189{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected