Example #1
0
//----------------------------------------------------------------------------
Real MultipleCurve2::GetSpeedWithData (Real fTime, void* pvData)
{
    MultipleCurve2* pvThis = *(MultipleCurve2**) pvData;
    int iKey = *(int*)((char*)pvData + sizeof(pvThis));
    return pvThis->GetSpeedKey(iKey,fTime);
}
Example #2
0
Real MultipleCurve2<Real>::GetSpeedWithData (Real t, void* data)
{
    MultipleCurve2* multi = *(MultipleCurve2**)data;
    int key = *(int*)((char*)data + sizeof(multi));
    return multi->GetSpeedKey(key, t);
}