delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2017/03/11/12:23:30

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=20161025;
h=date:from:to:subject:message-id:in-reply-to:references:mime-version
:content-transfer-encoding;
bh=2Rx1GJ5erJI5JPNAkUL1BmbgYv27F6FAfQIbCP19sUM=;
b=TTP5K9l6zSSbUfRBaxiwmt8RpY1t0ktnv7lWcHEgDtZ51Etd1wBeMrEkkf3bJ7HI9m
iCIaQ6BGRMLDqYnCDW6zyt4QPEL+1DlxUY3IQLizIg9y/XjUVMTMHeITupwSKJqj1M0x
vMU8Ihjfkqx7WzkqlKkHpVKATbB9L/Xof47RKWsL+RiLLPeixwDhGCXW7xvQzlotE8h0
ek6F0qKFbb+Lr+xE4sm8gitgYp0gSOEKzAlEx32pFxLV26Ra10SrdSkNf9mUvadekvwu
GYzRF8CXSQGnP35SqfmaZaNaerjltt4i3j4QgNAWdLXRpYDM6Oh6wvYoNqZpkvCHrw55
Gptg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-transfer-encoding;
bh=2Rx1GJ5erJI5JPNAkUL1BmbgYv27F6FAfQIbCP19sUM=;
b=uInlZbLs4MYy/hi3fg2fFvfaxrRPD+mbHuk7n3JZShg2EPkX5+JCyfm/w/L2Bx8+Pu
mCxwdPP6UQLvQEkzuzJNcgodVdVqrBJijsRyTpreh1goTQeWxlAcwTYt+DinSuh47uME
99A6GwU7YgBbPTqJ6vITWw3nUCEwNNvrhQgdRUoiAU812Fcg5O3JeUQJtytRwimSX4HP
Gsp2SKclISWW/aImtFHUh6PN5+XcsPRRZaU8JLpxqwfkqke2FwVX1MyRNf1r+CQBpNjF
hOHpRB3BOy79R/O2AQI5O8O0fuo0QoPyCp+myAm7QAzEvR2ZCvUWFCAL9Ypmo90Cc0fk
cw7Q==
X-Gm-Message-State: AMke39knklaeoxBAlg9JS2NOBSRTezqrVSGDkvt7mvgL9atQWoBz1LGC2tS+rAe+Lqy1dA==
X-Received: by 10.46.0.151 with SMTP id e23mr7635386lji.74.1489252891713;
Sat, 11 Mar 2017 09:21:31 -0800 (PST)
Date: Sat, 11 Mar 2017 18:21:28 +0100
From: "Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Rubberband move keeping lines direction
Message-Id: <20170311182128.49ef901fa59bbb5bb23aee1e@gmail.com>
In-Reply-To: <CAGqyy=bYZO8zpxMb90K2Ka3LjGG8SEEBvKZMnBDdLke4i=JEyg@mail.gmail.com>
References: <CAGqyy=bjaaMDLLybUPdE=3h1eb4puBmHQuJL4YwFy8Nvyv5R9A AT mail DOT gmail DOT com>
<CAGqyy=a7SFSnSUeBSiZBYFidGB=k3B=DQfHZD=Z6YqLn6FEj3w AT mail DOT gmail DOT com>
<20170306212421 DOT a658cb36967460efbe4ba474 AT gmail DOT com>
<CAGqyy=ZZB+Q6T0o4x8OP0LB3pBi0XPu3T+mW4-twTEZTxJsvAg AT mail DOT gmail DOT com>
<20170306220819 DOT 0a3d94a79f74b74976ff82d9 AT gmail DOT com>
<CAGqyy=bYZO8zpxMb90K2Ka3LjGG8SEEBvKZMnBDdLke4i=JEyg AT mail DOT gmail DOT com>
X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu)
Mime-Version: 1.0
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

> > If it work for any angle just a little bit of grid snapping to compensate
> > for rounding errors should solve it for the special but very common case of
> > 45/90 angles.
> >
> 
> I thought about rounding errors too, but in the end, floating point
> (double really) works pretty well, so 45/90 tracks keep their
> orientation perfectly, to the 100th of mil (i.e, same dx and dy module
> for 45deg tracks).

Yes, accuracy of calculation is so high it make no practical difference unless moved really many times.

> The problem was that, snapping to grid for any
> angle is perhaps impossible ...

In sort of it is because a double might not hit the exact number in the grid. To be perfect they should snap to the same or closest number but in practice it might not make a difference.

I think it is great even without this small tiny detail.

- Raw text -


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