MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / GetValue

Method GetValue

GTE/Mathematics/BasisFunction.h:410–421  ·  view source on GitHub ↗

Access the results of the call to Evaluate(...). The index i must satisfy minIndex <= i <= maxIndex. If it is not, the function returns zero. The separation of evaluation and access is based on local control of the basis function; that is, only the accessible values are (potentially) not zero.

Source from the content-addressed store, hash-verified

408 // local control of the basis function; that is, only the accessible
409 // values are (potentially) not zero.
410 Real GetValue(uint32_t order, int32_t i) const
411 {
412 if (order < 4)
413 {
414 if (0 <= i && i < mNumControls + mDegree)
415 {
416 return mJet[order][mDegree][i];
417 }
418 LogError("Invalid index.");
419 }
420 LogError("Invalid order.");
421 }
422
423 private:
424 // Determine the index i for which knot[i] <= t < knot[i+1]. The

Callers 10

ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
BSplineSurfaceFitMethod · 0.80
GetPositionMethod · 0.80
BSplineCurveFitMethod · 0.80
EvaluateMethod · 0.80
ComputeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected