Beispiel #1
0
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);
}
Beispiel #2
0
/*-------------------------------------------------------------------------*/
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);
}
Beispiel #3
0
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);
}
Beispiel #4
0
/*-------------------------------------------------------------------------*/
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);
}