www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/09/15/00:51:32

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=Y+ME3Zn3JC3VG8KOjp66hDG6WJftMgo17vWGq9TOPx4=;
b=Nq5BS4AT3tm+vbfdrHdmAAKVT6SNAsUznP+SnBStfilyG4rDZgNvrfL9uHykpvIEzA
RhSHJB/OfPNl/aRcLal7CZUxZLymvbkEiEJxsAdVYgCAvA7SNX16IWjGROH3aB/BA+ti
8GSdVuprB+3VH/mrZOMbsgAWOyYHDKrWtfRT/34nq+In/FsrdT99NdILXAp9HncN+Unj
CIxGXZXeWehiQLqfZNAO4Lp7ynuYKWHd+fxnzdemsemNzON1os44iAkrcsIttDvLXSoq
O2SG5jbgjtyhFTCYQZSCLj6wD7TEzIogazNcUlXC0ELXUW/ZvqpiRmBCGO4ZNoTBFrn6
sxkw==
MIME-Version: 1.0
X-Received: by 10.194.104.200 with SMTP id gg8mr36764496wjb.144.1442292656184;
Mon, 14 Sep 2015 21:50:56 -0700 (PDT)
In-Reply-To: <627B03CA-6C5A-4937-8C6E-B9B64D22435D@noqsi.com>
References: <20150913140631 DOT 1da1b78d AT jive DOT levalinux DOT org>
<201509131529 DOT t8DFTUVS022118 AT envy DOT delorie DOT com>
<20150914175929 DOT 22829 DOT qmail AT stuge DOT se>
<074A28AA-547E-4B71-8D81-30D2CB1B74F3 AT noqsi DOT com>
<20150914210429 DOT 5063 DOT qmail AT stuge DOT se>
<627B03CA-6C5A-4937-8C6E-B9B64D22435D AT noqsi DOT com>
Date: Mon, 14 Sep 2015 20:50:55 -0800
Message-ID: <CAC4O8c_Bim75Fx_qUNddOceqQC6nrcy60U+nW0-UxWzbmsd52Q@mail.gmail.com>
Subject: Re: [geda-user] Apollon
From: "Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--089e010d82126f23a4051fc1ed33
Content-Type: text/plain; charset=UTF-8

On Mon, Sep 14, 2015 at 4:40 PM, John Doty <jpd AT noqsi DOT com> wrote:

>
> On Sep 14, 2015, at 3:04 PM, Peter Stuge (peter AT stuge DOT se) [via
> geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
>
> > John Doty wrote:
> >>> I disagree very strongly with floating point, but using a fixed-size
> >>> decimal is an important improvement!
> >>
> >> The trouble is that common computer numerics do not actually obey the
> >> same rules as mathematical numbers.
> >
> > Nod.
> >
> >
> >> Rational numbers fix these problems.
> > ..
> >> For rendering on a grid, use fixed or floating point. The rationals
> >> that fall on your grid are a set of measure zero, anyway.
> >
> > Output (rendering on grid) is one issue, and is easy enough to deal
> > with in isolation.
> >
> > But input (rotate by 60 degrees) is another issue, and less easy to
> > handle, because it's very important for usability that user
> > input->output and vice versa is also closed.


If you define your set of permissible orientations sufficiently coarse
relative to the accuracy of the angle calculations you need to make, and
put those orientations at the center of your bins, there is no chance of a
rotate/rotate sequence putting you in a different bin.
This application doesn't need long rotation sequences, so its easy to
ensure that your calculations are sufficiently accurate with respect to
your bin size.

--089e010d82126f23a4051fc1ed33
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Mon, Sep 14, 2015 at 4:40 PM, John Doty <span dir=3D"ltr">&lt;<a hre=
f=3D"mailto:jpd AT noqsi DOT com" target=3D"_blank">jpd AT noqsi DOT com</a>&gt;</span> w=
rote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><span class=3D""><br>
On Sep 14, 2015, at 3:04 PM, Peter Stuge (<a href=3D"mailto:peter AT stuge DOT se"=
>peter AT stuge DOT se</a>) [via <a href=3D"mailto:geda-user AT delorie DOT com">geda-use=
r AT delorie DOT com</a>] &lt;<a href=3D"mailto:geda-user AT delorie DOT com">geda-user AT d=
elorie.com</a>&gt; wrote:<br>
<br>
&gt; John Doty wrote:<br>
&gt;&gt;&gt; I disagree very strongly with floating point, but using a fixe=
d-size<br>
&gt;&gt;&gt; decimal is an important improvement!<br>
&gt;&gt;<br>
&gt;&gt; The trouble is that common computer numerics do not actually obey =
the<br>
&gt;&gt; same rules as mathematical numbers.<br>
&gt;<br>
&gt; Nod.<br>
&gt;<br>
&gt;<br>
&gt;&gt; Rational numbers fix these problems.<br>
&gt; ..<br>
&gt;&gt; For rendering on a grid, use fixed or floating point. The rational=
s<br>
&gt;&gt; that fall on your grid are a set of measure zero, anyway.<br>
&gt;<br>
&gt; Output (rendering on grid) is one issue, and is easy enough to deal<br=
>
&gt; with in isolation.<br>
&gt;<br>
&gt; But input (rotate by 60 degrees) is another issue, and less easy to<br=
>
&gt; handle, because it&#39;s very important for usability that user<br>
&gt; input-&gt;output and vice versa is also closed.</span></blockquote><di=
v><br></div><div style=3D"">If you define your set of permissible orientati=
ons sufficiently coarse relative to the accuracy of the angle calculations =
you need to make, and put those orientations at the center of your bins, th=
ere is no chance of a rotate/rotate sequence putting you in a different bin=
.</div><div style=3D"">This application doesn&#39;t need long rotation sequ=
ences, so its easy to ensure that your calculations are sufficiently accura=
te with respect to your bin size.</div><div><br></div></div></div></div>

--089e010d82126f23a4051fc1ed33--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019