File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/4G52-YoNF55Bb.js
import{E as U,c as a,r as d,I as A,aj as W,al as P,u as T,o as E,bF as N,jr as F,m as y,l as X}from"./index-ajJ0B2-K.js";import{a as t,i as u}from"./3d-a5FjzFK6.js";import"./aleatoires-mDu76THU.js";import"./dateEtHoraires-L3F4WBTY.js";const Y="Spotting exercise in a straight block",se="03/05/2023",ie="9c916",oe="4G52";function re(){U.call(this),this.titre=Y,this.consigne="In the mark $(A;I;J;K)$:",this.nbQuestions=3,this.tailleDiaporama=2,this.besoinFormulaireNumerique=["Perspective angle",3,`1: 30°
2: 45°
3: 60°`],this.sup=1,this.besoinFormulaire2Numerique=["Type of questions",3,`1: Place a point
2: Read the coordinates
3: Mix`],this.sup2=1,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.introduction="";const c=12,p=12,n=12;parseInt(this.sup)===3?(a.anglePerspective=60,a.coeffPerspective=.4):parseInt(this.sup)===2?(a.anglePerspective=45,a.coeffPerspective=.3):parseInt(this.sup)===1&&(a.anglePerspective=30,a.coeffPerspective=.4);const G=t(0,0,0,!0,"A","below left"),q=t(p,0,0,!0,"B","below right"),z=t(p,n,0,!0,"C","above right"),J=t(0,n,0,!0,"D","above left"),K=t(0,0,c,!0,"E","above left"),B=t(p,0,c,!0,"F","above right"),H=t(p,n,c,!0,"G","above right"),R=t(0,n,c,!0,"H","above left"),h=[];let f=d(2,4),g=d(2,3),v=d(2,4);for(;f>=3&&g>=3;)f=d(2,5),g=d(2,3,f),v=d(2,5,[f,g]);const b=p/f,m=n/g,x=c/v,S=t(b,0,0,!0,"I","below right"),L=t(0,m,0,!1,"J","above left"),O=t(0,0,x,!0,"K","left");h.push(A(G,q,z,J,K,B,H,R,S,L,O));for(let e=0;e<=g;e++)for(let s=0,i,o,r;s<=v;s++)i=t(0,e*m,s*x),o=t(p,e*m,s*x),e===0||s===v?r=u(i,o,"black",!0):r=u(i,o,"black",!1),h.push(r.c2d);for(let e=0;e<=f;e++)for(let s=0,i,o,r;s<=v;s++)i=t(e*b,0,s*x),o=t(e*b,n,s*x),e===f||s===v?r=u(i,o,"black",!0):r=u(i,o,"black",!1),h.push(r.c2d);for(let e=0,s,i,o;e<=f;e++)s=t(e*b,0,0),i=t(e*b,0,c),o=u(s,i,"black",!0),h.push(o.c2d),s=t(e*b,n,0),i=t(e*b,n,c),e<f?o=u(s,i,"black",!1):o=u(s,i,"black",!0),h.push(o.c2d);for(let e=1,s,i,o;e<g;e++)s=t(0,e*m,0),i=t(0,e*m,c),o=u(s,i,"black",!1),h.push(o.c2d),s=t(p,e*m,0),i=t(p,e*m,c),o=u(s,i,"black",!0),h.push(o.c2d);let I=["to place","read"];this.sup2===1&&(I=["to place"]),this.sup2===2&&(I=["read"]);const V=W(I,this.nbQuestions);for(let e=0,s,i,o=0,r,M,Q,w,k,$,C,D,l,j;e<this.nbQuestions&&o<50;){for(k=0,$=0,C=0;k===0&&$===0&&C===0||k+$+$===1;)k=d(0,f),$=d(0,g),C=d(0,v);r=[k,$,C],l=t(r[0]*b,r[1]*m,r[2]*x,P(e+12),`${P(e+12)}`,"below right"),M=u(G,t(l.x,0,0),"blue",!0),Q=u(t(l.x,0,0),t(l.x,l.y,0),"green",!0),w=u(t(l.x,l.y,0),l,"red",!0),M.c2d.epaisseur=3,Q.c2d.epaisseur=3,w.c2d.epaisseur=3,D=T(l,"red"),D.epaisseur=2,D.taille=6,j=[M.c2d,Q.c2d,w.c2d,D,A(l)].concat(h),V[e]==="to place"?(s=`Place the point $${P(e+12)}$ with coordinates $(${r[0]};${r[1]};${r[2]})$.`,i=E({xmin:-1,xmax:1+p+n*Math.cos(N(a.anglePerspective)),ymin:-1,ymax:1+c+n*a.coeffPerspective*F(a.anglePerspective),scale:.6,style:"display:block; margin-top:20px;"},j),i+=`<br>Point $${P(e+12)}$ $(${y(r[0],"blue")};${y(r[1],"green")};${y(r[2],"red")})$.<br>`):(s=`Give the coordinates of the point $${P(e+12)}$`,h.push(T(l,"blue"),A(l)),i=E({xmin:-1,xmax:1+p+n*Math.cos(N(a.anglePerspective)),ymin:-1,ymax:1+c+n*a.coeffPerspective*F(a.anglePerspective),scale:.6,style:"display:block; margin-top:20px;"},j),i+=`<br>The point $${P(e+12)}$ has coordinates $(${y(r[0],"blue")};${y(r[1],"green")};${y(r[2],"red")})$.`),this.listeQuestions.indexOf(s)===-1&&(this.listeQuestions.push(s),this.listeCorrections.push(i),e++),o++}this.introduction=(a.vue==="slide"?"<center>":"")+E({xmin:-1,xmax:1+p+n*a.coeffPerspective*Math.cos(N(a.anglePerspective)),ymin:-1,ymax:1+c+n*a.coeffPerspective*F(a.anglePerspective),scale:.6,style:"display:block; margin-top:20px;"},h)+(a.vue==="slide"?"</center>":""),X(this)}}export{se as dateDeModifImportante,re as default,oe as ref,Y as titre,ie as uuid};
//# sourceMappingURL=4G52-YoNF55Bb.js.map