42 #ifndef SCI_Math_CatmullRomSpline_h
43 #define SCI_Math_CatmullRomSpline_h
80 #include <Core/Util/Assert.h>
155 int idx1 = (idx-1+
size) % size;
156 int idx2 = (idx +
size) % size;
157 int idx3 = (idx+1+
size) % size;
158 int idx4 = (idx+2+
size) % size;
165 T result = ( (p0*-1 + p1*3 + p2*-3 + p3 ) * (t3 * 0.5)+
166 (p0*2 + p1*-5 + p2*4 + p3*-1) * (t2 * 0.5)+
167 (p0*-1 + p2 ) * (t * 0.5)+
Interface to dynamic 1D array class.
void add(const T &)
Definition: CatmullRomSpline.h:124
void removeData(const int)
Definition: CatmullRomSpline.h:138
void setData(const Array1< T > &)
Definition: CatmullRomSpline.h:110
dictionary data
Definition: eabLatVolData.py:11
T & operator[](const int)
Definition: CatmullRomSpline.h:175
T operator()(double) const
Definition: CatmullRomSpline.h:145
int n
Definition: eab.py:9
void insertData(const int, const T &)
Definition: CatmullRomSpline.h:131
Definition: CatmullRomSpline.h:51
void clear()
Definition: CatmullRomSpline.h:117
CatmullRomSpline()
Definition: CatmullRomSpline.h:85
int size
Definition: eabLatVolData.py:2