IN - Chapitre 4 - Animation - IUT d'Arles
IN - Chapitre 4 - Animation - IUT d'Arles
IN - Chapitre 4 - Animation - IUT d'Arles
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Interpolation linéaire<br />
Soit un point P(x,y,z) en mouvement. On veut l’amener de (x 0<br />
,y 0<br />
,z 0<br />
) au<br />
temps t 0<br />
au point (x 1<br />
,y 1<br />
,z 1<br />
) au temps t 1<br />
. On peut utiliser une interpolation<br />
linéaire :<br />
Y<br />
X<br />
P(x 1<br />
,y 1<br />
,z 1<br />
)<br />
P(x,y,z)<br />
Z P(x 0<br />
,y 0<br />
,z 0<br />
)<br />
Si on considère que t 0<br />
=0 et t 1<br />
=1, alors :<br />
X(t) = (1-t).x 0<br />
+ t.x 1<br />
avec t ∈ [0 ,1]<br />
= x 0<br />
+ t.(x 1<br />
-x 0<br />
)<br />
Autres interpolations possibles : bicubique, spline, etc.<br />
11