25 computeIndex(t, Index, u);
26 evaluate_percent(Index, u, c);
33 computeIndex(t, Index, u);
34 evaluate_derivative(Index, u, hermite);
58 while (i+1 < N && lengths[i+1] < length_)
66 ASSERT(t >= 0.f && t <= 1.f);
67 length_type length_ = t *
length();
68 index = computeIndexInBounds(length_);
70 u = (length_ -
length(index)) / (
float)
length(index, index+1);
75 ASSERT(t >= 0.f && t <= 1.f);
76 return computeIndexInBounds(t *
length());
83 lengths.resize(index_hi+1);
86 length += SegLength(i);
void initLengths()
Definition: SplineImpl.h:79
void evaluate_percent(float t, Vector3 &c) const
Definition: SplineImpl.h:21
void computeIndex(float t, index_type &out_idx, float &out_u) const
Definition: SplineImpl.h:64
int index_type
Definition: Spline.h:31
float length(float v)
Definition: vectorMath.h:208
#define ASSERT
Definition: Errors.h:55
void clear()
Definition: SplineImpl.h:91
index_type computeIndexInBounds(length_type length) const
Definition: SplineImpl.h:37
void evaluate_derivative(float t, Vector3 &hermite) const
Definition: SplineImpl.h:29