Free Electron
|
A stateless namespace for assorted spline functions. More...
#include <Spline.h>
Public Member Functions | |
template<> | |
double | Basis2D (double a_t, I32 a_count, const double *a_pKnot, const double *a_pControl) |
Static Public Member Functions | |
static T | Cardinal2D (U t, T p0, T p1, T p2, T p3) |
Compute f(t) for 0<=t<=1 where f(-1)=p0, f(0)=p1, f(1)=p2, f(2)=p3. More... | |
static T | Cardinal2D_d1 (U t, T p0, T p1, T p2, T p3) |
Compute 1st derivitive of f(t) More... | |
static T | Cardinal2D_d2 (U t, T p0, T p1, T p2, T p3) |
Compute 2nd derivitive of f(t) More... | |
static FE_DL_EXPORT T | Basis2D (U a_t, I32 a_count, const T *a_pKnot, const T *a_pControl) |
A stateless namespace for assorted spline functions.
The Cardinal spline was introduced by I.J. Schoenberg in 1973.
The Cardinal spline guarantees control-point intersection. It assumes fairly evenly spaced samples.
A Catmull-Rom spline appears to be a Cardinal spline with the "tension" adjustment fixed at 0.5.
|
static |
Compute f(t) for 0<=t<=1 where f(-1)=p0, f(0)=p1, f(1)=p2, f(2)=p3.
|
static |
Compute 1st derivitive of f(t)
|
static |
Compute 2nd derivitive of f(t)