@options;
  

@figure;
  
  
  var hauteur = 6.24;
  var profond= 2.002;
  
  var b = plafond-4.5;
  P1 = point( -4.5, -4.5 )  { i , fixe };
  P2 = point( 4.5 , -4.5 )  { i , fixe };
  P3 = point( 4.5 , b )  { i , fixe };
  P4 = point( -4.5 , b)  { i , fixe };
  poly_P = polygone( P1 , P2 , P3 , P4  )  {rose,plein30};
  
  E1 = point( -2 , 2.5) {i} ;
  E2 = point( 2 , 2.5 )  {i} ;
  sE1E2 = segment( E1 , E2 ){ noir };
  E = pointsur( sE1E2 , 0.7 )  { noir , rond2 , sansnom };
  var h =E1E*1.8{ 1.5 };
  
  var plafond=h {dec2};
  var plafond1=plafond*(2.5/6.5) {dec2};
  
  M1=point(-5,5){i};
  M2=point(-5,4.4){i};
  M3=point(-5,3.8){i};
  texte1 = texte( M1 ,"Hauteur de l'armoire : 2,40 m")  { noir};
  texte2 = texte( M2 ,"Profondeur de l'armoire : 0,77 m")  { noir};
  texte3 = texte( M3 ,"Hauteur du plafond : $plafond1$ m")  { rouge};
  
   var c = hauteur-2.3;
  var d = profond-4.5;
  A1 = point( -2.3 , -4.5  ) {i} ;
  A2 = point(c,-4.5  )  {i};
  A3= point(c,d){ i};
  
  dP4P3= droite(P4P3){i};
  var diag =A1A3;
  ce_arm = cerclerayon( A1 , diag ) {i};
  T = intersection( dP4P3 , ce_arm , 1 ) {i};
  
  var a =angle(A3A1T) { 88.3791792481 };
  varsi x =[diag<7.1,90,a] { 90 };
  rot = rotation( A1 , x );
  Y = image( rot , A2 )  { i  };
  arc= arc( A2 , A1 , Y )  { i };
  B2 = pointsur( arc , 0 )  { vert , rond2,sansnom  };
  sA1B2=segment(A1,B2){i};
  perp2=perpendiculaire(B2,sA1B2){i};
  c2=cerclerayon(B2,profond) {i};
  B3= intersection(c2, perp2,1){ i};
  perp3=perpendiculaire(A1,sA1B2){i};
  c3=cerclerayon(A1,profond) {i};
  B4= intersection(c3, perp3,1){ i};
  poly_B = polygone( A1 , B2 , B3 , B4  ) {marron,plein60};
 
@analyse;

@enonce;

@config;
couleurfonddessin=0xFFFFFF;