/* Image d'un point par homothétie */ size(6cm,0); // Définition d'une fonction renvoyant // l'image d'un point M par une homothétie pair ImageParHom(pair M, real k, pair Centre) { return shift(k*(M-Centre))*Centre; } // Placement de 3 points donnés pair pA=(0,0),pB=(2,1),pC=(2,2); dot("$A$",pA,SW); dot("$B$",pB,S); dot("$C$",pC,N); // Définition des image B' et C' de B et C // par l'homothétie de centre A et de rapport 1,5 pair imB=ImageParHom(pB,1.5,pA), imC=ImageParHom(pC,1.5,pA); // Construction de B' et C', des segments dot("$B'$",imB,SE,red);dot("$C'$",imC,NE,red); draw(imB--pA--imC,green); draw(pB--pC^^imB--imC,1bp+blue);