24 computeIndex(t, Index, u);
25 evaluate_percent(Index, u, c);
32 computeIndex(t, Index, u);
33 evaluate_derivative(Index, u, hermite);
57 while (i+1 < N && lengths[i+1] < length_)
65 ASSERT(t >= 0.f && t <= 1.f);
66 length_type length_ = t * length();
67 out_idx = computeIndexInBounds(length_);
68 ASSERT(out_idx < index_hi);
69 out_u = (length_ - length(out_idx)) / (
float)length(out_idx, out_idx+1);
74 ASSERT(t >= 0.f && t <= 1.f);
75 return computeIndexInBounds(t * length());
81 length_type length = 0;
82 lengths.resize(index_hi+1);
85 length += SegLength(i);
86 lengths[++i] = length;
void computeIndex(float t, index_type &out_idx, float &out_u) const
index_type computeIndexInBounds(length_type length) const
void evaluate_derivative(float t, Vector3 &hermite) const
void evaluate_percent(float t, Vector3 &c) const