HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/4G11-jmArOcli.js
import{E as I,c as z,r as D,a7 as A,C as W,ai as J,n as K,V as U,o as F,R as y,u as X,M as Y,l as Z,a5 as H,a8 as ee}from"./index-hc8lvKav.js";import{c as f}from"./style-0IaNCtso.js";import{t as se}from"./2dAnimation-xuB06sf5.js";import{p as j}from"./Pavage-hjLZE9Kd.js";const te="Finding the image of a figure by a translation in a tiling",le="3bfb6",ae="4G11";function ue(){I.call(this),this.titre=te,this.consigne="",this.nbQuestions=3,this.nbQuestionsModifiable=!0,this.correctionDetaillee=!0,this.correctionDetailleeDisponible=!0,this.nbCols=1,this.nbColsCorr=1,this.sup=1,this.sup2=!1,this.sup3=7,z.isHtml?this.spacingCorr=2.5:this.spacingCorr=1.5,this.nouvelleVersion=function(){this.sup=Number(this.sup),this.sup3=Number(this.sup3);const L=function(e){for(let t=0;t<e.length;t++)for(let o=t+1;o<e.length;o++)e[t][1]===e[o][0]&&e.splice(o,1);return e},O=function(e,t){return x(e,t)?!!V(e,t):!1},x=function(e,t){return e.listePoints.length===t.listePoints.length},E=function(e,t){return!!(H(e.x,t.x,.1)&&H(e.y,t.y,.1))},V=function(e,t){let o=!1,b=0;if(x(e,t))for(const v of e.listePoints){for(const w of t.listePoints)if(E(w,v)&&(o=!0),o)break;if(o?(b++,o=!1):b-=100,b<0)break}return b===e.listePoints.length},B=function(e,t,o){const b=e.polygones[o-1];let v;const w=-1,G=ee(b,t);for(let Q=0;Q<e.polygones.length;Q++)if(v=e.polygones[Q],O(G,v))return Q+1;return w},g=[],M=[];let u,p,C,$,m=this.sup,i=[];(m<1||m>2)&&(m=1),this.nbQuestions>5&&(m=2),this.listeCorrections=[],this.listeQuestions=[];let N,S,a,n,r,l,h,q,s,_,P="",R="",c=this.sup,T,k=1,d;for(s=j(),this.sup3===8?c=D(1,7):c=parseInt(this.sup3);i.length<this.nbQuestions&&k<6;){T=0,s=j();const e=[[[3,2],[3,2],[2,2],[2,2],[2,2],[2,2],[3,2]],[[4,3],[4,3],[3,3],[3,3],[3,3],[3,2],[5,3]]];for(N=e[m-1][c-1][0],S=e[m-1][c-1][1],s.construit(c,N,S,3),_=s.fenetre;i.length<this.nbQuestions+2&&T<3;){for(i=[],a=D(Math.floor(s.nb_polygones/3),Math.ceil(s.nb_polygones*2/3)),n=D(Math.floor(s.nb_polygones/3),Math.ceil(s.nb_polygones*2/3),a);!x(s.polygones[a],s.polygones[n]);)n=(n+1)%(s.polygones.length-1);for(r=s.barycentres[a],l=s.barycentres[n],d=A(r,l);E(r,l);){for(n=D(Math.floor(s.nb_polygones/3),Math.ceil(s.nb_polygones*2/3),a);!x(s.polygones[a],s.polygones[n]);)n=(n+1)%(s.polygones.length-1);r=s.barycentres[a],l=s.barycentres[n],d=A(r,l)}h=W(r,l,"red"),h.styleExtremites="->",h.epaisseur=3;for(let t=1;t<=s.nb_polygones;t++)q=B(s,d,t),q!==-1&&i.push([t,q]);i=L(i),T++}i.length<this.nbQuestions&&(this.sup3===7&&(c=(c+1)%5+1),k++)}if(i.length<this.nbQuestions){console.error("too many questions, increase the tiling size");return}g.push(h),i=J(i);for(let e=0;e<s.nb_polygones;e++)g.push(K(U(e+1),s.barycentres[e].x+.5,s.barycentres[e].y,"medium","gray",1,0,!0));if(this.sup2)for(let e=0;e<s.nb_polygones;e++)g.push(s.tracesCentres[e]);for(let e=0;e<s.nb_polygones;e++)g.push(s.polygones[e]);P=F(_,g),P+="<br>";for(let e=0;e<this.nbQuestions;e++)P+=`What is the image of the figure $${i[e][0]}$ in the translation transforming the figure $${a+1}$ into the figure $${n+1}$?<br>`,R+=`The image of the figure $${i[e][0]}$ in the translation transforming the figure $${a+1}$ into the figure $${n+1}$ is the figure ${i[e][1]}.<br>`,this.correctionDetaillee&&(r=s.barycentres[i[e][0]-1],l=s.barycentres[i[e][1]-1],h=d.representant(r,l),h.color=y(f(e)),$=this.nbQuestions*3,u=s.polygones[i[e][0]-1],u.color=y(f(e)),u.couleurDeRemplissage=y(f(e)),u.opaciteDeRemplissage=.5,u.epaisseur=2,p=s.polygones[i[e][1]-1],p.color=y(f(e)),p.couleurDeRemplissage=y(f(e)),p.opaciteDeRemplissage=.5,p.epaisseur=2,M.push(X(r,l),h,Y(r,l,"//",f(e)),u,p),z.isHtml&&(C=se(u,d,`begin="${e*3}s;${e*3+$}s;${e*3+$*2}s" end="${e*3+2}s;${e*3+$+2}s;${e*3+$*2+2}s" dur="2s" repeatCount="indefinite" repeatDur="${9*this.nbQuestions}s" id="poly-${e}-anim"`),C.color=y(f(e)),C.epaisseur=2,M.push(C)));this.correctionDetaillee&&(R+=F(_,g,M)),this.listeQuestions.push(P),this.listeCorrections.push(R),Z(this)},this.besoinFormulaireNumerique=["Size of the tiling (the large one is automatic beyond 5 questions)",2,` 1: Modest size
2: Large size`],this.besoinFormulaire2CaseACocher=["Show centers"],this.besoinFormulaire3Numerique=["Choice of paving",8,`1: Equilateral triangles
2: Squares
3: Regular hexagons
4: Squares and equilateral triangles
5: Octagons and squares
 6: Rhombuses (school hexagonal tiling)
7: Hexagons and equilateral triangles
8: One of seven random tilings`]}export{ue as default,ae as ref,te as titre,le as uuid};
//# sourceMappingURL=4G11-jmArOcli.js.map