je viens de me casser la tête pendant environ trois heures.... sur ce problème :
Code : Tout sélectionner
x2 = 540
x4 = 640
y3 = 479
y1 = 200
y=250
tmp1 = (x4-x2)/(y3-y1)
tmp2 = (y-y1)
xEnd = x2 + tmp1 * tmp2
MessageRequester("Test", StrF(xEnd))
Code : Tout sélectionner
tmp1 = (x4-x2)/(y3-y1)
tmp2 = (y-y1)
Code : Tout sélectionner
tmp1.f = (x4-x2)/(y3-y1)
tmp2.f = (y-y1)
