float KB_PosLength(void* info, float t) { SplineInfo* tmp = (SplineInfo*) info; int i; float u; ComputeIAndU(tmp, t, &i, &u); return Length(&tmp->poly[i], u); }
/*-------------------------------------------------------------------------*/ double KB_PosLength (void* info, double t) { SplineInfo* tmp = (SplineInfo*) info; int i; double u; ComputeIAndU(tmp,t,&i,&u); return Length(&tmp->poly[i],u); }
void KB_PosInterpolate2(void* info, float t, Point3* P) { SplineInfo* tmp = (SplineInfo*)info; int i; float u; ComputeIAndU(tmp, t, &i, &u); InterpolateSingle2(u, &tmp->poly[i], P); }
/*-------------------------------------------------------------------------*/ void KB_PosInterpolate1 (void* info, double t, Point3* P) { SplineInfo* tmp = (SplineInfo*)info; int i; double u; ComputeIAndU(tmp,t,&i,&u); InterpolateSingle1(u,&tmp->poly[i],P); }