File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/6G11-1-eXiwfnOA.js
import{E as ce,c as L,ag as he,cr as $e,r as w,q as m,al as Y,ai as ue,aA as a,aE as U,bu as f,cn as z,bW as M,J as c,b8 as me,u as pe,I as ee,av as G,L as q,M as v,b4 as b,au as k,o as te,l as de,bj as oe}from"./index-hc8lvKav.js";import{g as xe,s as be}from"./reperes-MjYMQS1W.js";const ge="Drawing perpendiculars",Pe="09/10/2022",De="df825",Ee="6G11-1";class _e extends ce{constructor(){super(),this.titre=ge,this.nbQuestions=1,this.nbCols=1,this.nbColsCorr=1,this.sup=1,this.sup2="1",this.typeExercice="IEP",this.spacing=L.isHtml?2:1,this.besoinFormulaireNumerique=["Notebook type",3,` 1: Notebook with small squares
2: Notebook with large squares (Seyes)
3: Blank sheet`],this.besoinFormulaire2Texte=["Type of questions",["Numbers separated by hyphens","1: Orthocenter (interior of the triangle)","2: Orthocenter (exterior of the triangle)","3: Center of the circumscribed circle (interior of the triangle)","4: Center of the circumscribed circle (exterior of the triangle)","5: Mixture"].join(`
ot`)]}nouvelleVersion(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];let J=[];J=he({max:4,defaut:1,melange:5,listeOfCase:["OrthoInterior","OrthoExterior","CircoInterior","CircoExterior","Blend"],nbQuestions:this.nbQuestions,saisie:this.sup2});for(let A=0,re,g,V=0;A<this.nbQuestions&&V<50;V++){g=J[A];const r=new $e,S=[],P=[],W=w(1,15),e=m(0,0,Y(W),"above left");let t=m(20,w(-4,0,[-1,0,1]),Y(W+1),"above right"),y,C,_;switch(g){case"OrthoInterior":case"CircoInterior":{y=w(30,80),C=w(30,80),_=180-y-C;let Q=0;for(;_>90&Q<30;){const I=w(1,10);y+I<90?(y=y+I,_=_-I):C+I<90&&(C=C+I,_=_-I),Q++}break}case"OrthoExterior":case"CircoExterior":{y=90+w(10,30),C=w(30,50),_=180-y-C;const Q=ue([y,C]);y=Q[0],C=Q[1],t.x=10;break}}const B=a(e,t),ie=U(t,e,y),ne=U(e,t,-1*C),Z=f(a(e,ie),a(t,ne));let o=m(Math.floor(Z.x),Math.floor(Z.y),Y(W+2),"above left");const se=z(t,e,o),ae=z(o,t,e),le=z(e,o,t);if((g==="OrthoInterior"||g==="CircoInterior")&&(se>85||ae>85||le>85))continue;const R=a(e,o),T=a(t,o);let D,E,O,p;switch(g){case"OrthoInterior":case"OrthoExterior":D=M(o,B,"","blue"),E=M(t,R,"","green"),O=M(e,T,"","red"),p=f(D,E);break;case"CircoInterior":case"CircoExterior":D=M(c(e,t),B,"","blue"),E=M(c(e,o),R,"","green"),O=M(c(t,o),T,"","red"),p=f(D,E);break}const s=Math.floor(Math.min(e.x,t.x,o.x,p.x)-1),h=Math.ceil(Math.max(e.x,t.x,o.x,p.x)+1),d=Math.floor(Math.min(e.y,t.y,o.y,p.y)-1),l=Math.ceil(Math.max(e.y,t.y,o.y,p.y)+1);L.fenetreMathalea2d=[s,d,h,l];let $=f(a(m(s,d),m(h,d)),D,"(d_1)","above left");$&&$.x>=s&&$.x<=h?$.y=$.y+.5:$=me(D,s,"(d_1)","above left");let i=f(a(m(s,d),m(s,l)),E,"(d_2)","below right");i&&i.y<=l&&i.y>=d?i.x=i.x+.5:(i=f(a(m(s,l),m(h,l)),E,"(d_2)","below left"),i&&i.x<=h&&i.x>=s&&(i.y=i.y-.5));let n=f(a(m(h,d),m(h,l)),O,"(d_3)","above left");n&&n.y<=l&&n.y>=d?n.x=n.x-.5:(n=f(a(m(s,l),m(h,l)),O,"(d_3)","below right"),n&&n.x<=h&&n.x>=s&&(n.y=n.y-.5));const X=pe(e,t,o);X.tailleTikz=.3,P.push(X,ee(e,t,o),B,R,T,O,E,D),P.push(G($.nom,$,"blue",20,12,"",8)),P.push(G(i.nom,i,"green",20,12,"",8)),P.push(G(n.nom,n,"red",20,12,"",8)),g==="OrthoInterior"||g==="OrthoExterior"?P.push(q(t,f(D,B),o),q(o,f(O,T),e),q(t,f(E,R),o)):P.push(v(t,c(t,o),"|||"),v(c(t,o),o,"|||"),v(e,c(e,o),"||"),v(c(e,o),o,"||"),v(t,c(e,t),"|"),v(c(e,t),e,"|"),q(t,c(e,t),p),q(o,c(t,o),p),q(o,c(e,o),p)),S.push(X,ee(e,t,o));let H="",u="",x=0;L.isHtml&&(u+=b(x++)+" Reproduce the figure below.<br>"),g==="OrthoInterior"||g==="OrthoExterior"?(u+=b(x++)+`Plot $(${e.nom}${t.nom})$, $(${e.nom}${o.nom})$ and $(${t.nom}${o.nom})$.<br>`,u+=b(x++)+`Draw the line $(d_1)$ perpendicular to $(${e.nom}${t.nom})$ passing through $${o.nom}$.<br>`,u+=b(x++)+`Draw the line $(d_2)$ perpendicular to $(${e.nom}${o.nom})$ passing through $${t.nom}$.<br>`,u+=b(x++)+`Draw the line $(d_3)$ perpendicular to $(${t.nom}${o.nom})$ passing through $${e.nom}$.<br>`):(u+=b(x++)+`Plot $(${e.nom}${t.nom})$, $(${e.nom}${o.nom})$ and $(${t.nom}${o.nom})$.<br>`,u+=b(x++)+`Place the middle of $[${e.nom}${t.nom}]$.<br>`,u+=b(x++)+`Draw the line $(d_1)$ perpendicular to $(${e.nom}${t.nom})$ passing through the midpoint of $[${e.nom}${t.nom}]$.<br>`,u+=b(x++)+`Place the middle of $[${e.nom}${o.nom}]$.<br>`,u+=b(x++)+`Draw the line $(d_2)$ perpendicular to $(${e.nom}${o.nom})$ passing through the midpoint of $[${e.nom}${o.nom}]$.<br>`,u+=b(x++)+`Place the middle of $[${t.nom}${o.nom}]$.<br>`,u+=b(x++)+`Draw the line $(d_3)$ perpendicular to $(${t.nom}${o.nom})$ passing through the midpoint of $[${t.nom}${o.nom}]$.<br>`),r.taille((h-s+5)*30,(l-d+5)*30),r.recadre(s-3,l),t=k(e,t,.5,"B","above right"),o=k(e,o,.5,"C","above right"),$=k(e,$,.5),i=k(e,i,.5),n=k(e,n,.5),p=k(e,p,.5),r.pointsCreer(e,t,o),r.regleModifierLongueur(20),r.equerreZoom(200),r.regleDroite(e,t,{couleur:"blue"}),r.regleDroite(e,o,{couleur:"blue"}),r.regleDroite(t,o,{couleur:"blue"}),r.regleMasquer(),g==="OrthoInterior"||g==="OrthoExterior"?(r.perpendiculaireRegleEquerreDroitePoint(a(e,t),o),r.textePosition("$(d_1)$",$.x,$.y),r.perpendiculaireRegleEquerreDroitePoint(a(e,o),t),r.textePosition("$(d_2)$",i.x,i.y),r.perpendiculaireRegleEquerreDroitePoint(a(t,o),e),r.textePosition("$(d_3)$",n.x,n.y)):(r.perpendiculaireRegleEquerreDroitePoint(a(e,t),c(e,t)),r.textePosition("$(d_1)$",$.x,$.y),r.perpendiculaireRegleEquerreDroitePoint(a(e,o),c(e,o)),r.textePosition("$(d_2)$",i.x,i.y),r.perpendiculaireRegleEquerreDroitePoint(a(t,o),c(t,o)),r.textePosition("$(d_3)$",n.x,n.y)),r.pointCreer(p);let N,j,F;this.sup<3?N=xe(s,d,h,l,"gray",.7):N=oe(),parseInt(this.sup)===2?(j=.8,F=be(s,d,h,l)):(j=.5,F=oe()),S.push(N,F),P.push(N,F);const K=20;u+="<br>"+te({xmin:s,ymin:d,xmax:h,ymax:l,pixelsParCm:K,scale:j},S),H+=te({xmin:s,ymin:d,xmax:h,ymax:l,pixelsParCm:K,scale:j},P),H+=r.htmlBouton(this.numeroExercice,A),L.isHtml&&(H+="<br><br>Note: the lines $(d_1)$, $(d_2)$ and $(d_3)$ have a single point of intersection. We say that they are concurrent."),this.listeQuestions.indexOf(re)===-1&&(this.listeQuestions.push(u+"<br>"),this.listeCorrections.push(H+"<br>"),A++)}de(this)}}export{Pe as dateDePublication,_e as default,Ee as ref,ge as titre,De as uuid};
//# sourceMappingURL=6G11-1-eXiwfnOA.js.map