Homothetie

 

Définit une homothétie par son centre et son rapport.
Pour construire une image, il faut utiliser image.

  Syntaxe Paramètres
1- h=homothetie(O,k); h : nom de l'homothétie
O : nom du centre
k : valeur du rapport
 
2- h=homothetie(O,z); h : nom de l'homothétie
O : nom du centre
z : objet numérique (entier, reel, ... var) valeur du rapport
 

Exemple 1:
  A = point(0,-1);
  B = point(-1,0);
  C = point(-2,-1);
  h =homothetie(C,2);
  iA =image(h,A);
  iB =image(h,B);

Place 3 points A,B,C et définit l'homothétie h de centre A et de rapport 2
puis construit l'image iA de A par l'homothétie h et l'image iB de B par l'homothétie h.
 

Exemple 2:
  A = point(-2,0);
  B = point(2,1);
  k =reel(0.75,0.5,2,0.1);
  h =homothetie(B,k);
  iA =image(h,A);

Place 2 points A,B
puis définit la variable k, valant 0,75 au départ, variant entre 0,5 et 2 de 0,1 en 0,1,
puis définit l'homothétie h de centre A et de rapport k
puis construit l'image iA de A par l'homothétie h .

 

TracenPoche (c) Sésamath