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.
| 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 |
no outgoing calls
no test coverage detected