From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106117 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: A question about whatever (Metapost) Date: Sun, 26 Jan 2020 00:09:38 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1982741014993452727==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="67528"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 26 00:13:01 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ivUbs-000HWr-Nv for gctc-ntg-context-518@m.gmane-mx.org; Sun, 26 Jan 2020 00:13:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D2E051650C7; Sun, 26 Jan 2020 00:12:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k0q9PauyLMAJ; Sun, 26 Jan 2020 00:12:09 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B95BA1650D5; Sun, 26 Jan 2020 00:12:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 19753164F9D for ; Sun, 26 Jan 2020 00:12:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mJMY6BvIzwbw for ; Sun, 26 Jan 2020 00:12:08 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.48; helo=mail-wm1-f48.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 83801164F99 for ; Sun, 26 Jan 2020 00:12:08 +0100 (CET) Original-Received: by mail-wm1-f48.google.com with SMTP id m24so3131714wmc.3 for ; Sat, 25 Jan 2020 15:12:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=xjBJDfeWtFR6RN45WF56RtOIpXCHtJGmQ7XweELTB3E=; b=Z+Eyy5Wxqgwt3LT+anX3Aw4NBUPul0AitWkzuWTqnENPwl8IGooAUGC72RT99htIQY Y6kx/ioTVvrAVPsJOqTFErFeFMfqyn8uVwFZhznVqtk+mxomLKqdPOGXbmSl56+VU+FB gkkPAWraJopURM5dsjmWg4mOhwLerWHPIqE1XeNNFm00TjhINi2XcyR73NRKLuh2ZpFB 4mo3kDcpy/reecgg5jrLH3Ayo8pS4Gc47PbINX8Pi41DTP8Spw8tG0EdkfnsZ6tl04A8 9dchUsyklJigdrxjmWv1dQ7m+hTfEXb5MbQ80kLWN0VYvlwBN0/Ji5MEigNZ6mt14VSV 9SOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xjBJDfeWtFR6RN45WF56RtOIpXCHtJGmQ7XweELTB3E=; b=rJEKghA721qBQcWR04HHmfqnPd7ruv9hINcqCD2WpP7urqauQnnIBAtImy0G8EEXfL 6zG5hYpuSnLhszEsGHIUKRs4A783Jbba9NnNMf9dypHob3rQxdXt3VSypb70hq0gEzLB iHJYMG2rn4TadvgZhu28dTQiCuwbz6wxo95uiJ1LtMQHKzyYLuKTwdRYTwLzA/Z8h53o GV36sudL8D/wz2LwY4/sSooqbuCPVwaYG4XnF/Bs4WEtp1l3DVIVEKuX4FPezJtuSmVg NQfuw4XyVhh9Ql2t6gsWmedi3J0fwmcv4r5ltxMhf5rBMagjZtxbHYD9JavvbAasseu3 38ZQ== X-Gm-Message-State: APjAAAUdh2tMEewckvLc2x0oa4j3Z2Bo8lO+gOA8dON6wiWa1llVWNek tyM0M3nIFOGZRCt200+Bnc2Vh0fl9Oeyf56k4yA87Oub X-Google-Smtp-Source: APXvYqyyyfKKNgkLIKoS/G9V5oLQ0JrT1poAhpya6+nyoCU7QqGRLP/T9GJoPYUdRHHiwYxkbanN3Mjfs/JgKSml+iA= X-Received: by 2002:a1c:1d8d:: with SMTP id d135mr5923699wmd.92.1579993927952; Sat, 25 Jan 2020 15:12:07 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:106117 Archived-At: --===============1982741014993452727== Content-Type: multipart/alternative; boundary="000000000000d2aab8059cff0035" --000000000000d2aab8059cff0035 Content-Type: text/plain; charset="UTF-8" Hi, The point M is such that the line (CM) is perpendicular to the line (NP). I do not understand the error of this code. Thank you Fabrice \usecolors[xwi] \starttext \startMPcode path carre, p; carre = unitsquare scaled 138; pair a, b, c, d, N, P, M; a = point 0 of carre; b = point 1 of carre; c = point 2 of carre; d = point 3 of carre; p = b -- d; N = whatever[a,d]; P = whatever[a,b]; M = whatever[b,d]; (M - c) dotprod (P - N) = 0; draw M -- c; draw p withcolor \MPcolor{navy}; draw carre withcolor \MPcolor{firebrick}; label.lft("$A$", point 0 of carre); label.lrt("$B$", point 1 of carre); label.urt("$C$", point 2 of carre); label.ulft("$D$", point 3 of carre); \stopMPcode \stoptext --000000000000d2aab8059cff0035 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
Th= e point M is such that the line (CM) is perpendicular to the line (NP).
I do not understand the error of this code.<= br>Thank you
Fabrice

\usecolors[xwi]
\starttext\startMPcode
=C2=A0 path carre, p;
=C2=A0 carre =3D unitsquare scale= d 138;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 pair a, b, c, d, N,= P, M;
=C2=A0 a =3D point 0 of carre;
=C2=A0 b =3D point 1 of carre;<= br>=C2=A0 c =3D point 2 of carre;
=C2=A0 d =3D point 3 of carre;

= =C2=A0 p =3D b -- d;
=C2=A0 N =3D whatever[a,d];
=C2=A0 P =3D whateve= r[a,b];
=C2=A0 M =3D whatever[b,d];
=C2=A0(M - c) dotprod (P - N) =3D= 0;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 draw M -- c;
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 draw p =C2=A0withcolor \MPcolor{= navy};
=C2=A0 draw carre withcolor \MPcolor{firebrick};
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0
=C2=A0 label.lft("$A$", point 0 of carr= e);
=C2=A0 label.lrt("$B$", point 1 of carre);
=C2=A0 label= .urt("$C$", point 2 of carre);
=C2=A0 label.ulft("$D$&quo= t;, point 3 of carre);
\stopMPcode
\stoptext
--000000000000d2aab8059cff0035-- --===============1982741014993452727== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1982741014993452727==--