delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2017/03/11/13:41:17

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=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=Rnym1tXUoLx871f6In2W229Oo8uNB3KIHbnBfo/OA4Q=;
b=uY30qV/MSCS06xwzoPbFvr2BOwVuGytkRpsCNQS8DiUxbrNPMmmSkiZ6qaHLjihOn4
0H9XLXLSESRr7S0J/O1Jz6dhcjKj8r/ye1l/ttjUOHftKhdMQKFzJSWZbkJU8w94spz1
DeQenDkKZS2D24GboOEtZGrdcmjD+0fvWcEaTxGNnR+I2HFL2vXVrHPgJqMI4iomzff9
YjZxCKmLwg77P3prScRbcDcBNShjgu5b8HUE9Q+fbeKGOmpaxMjRtst979nqermHz8tv
YGZ/ExhDRiwEsPRzVHXL4503nv+RxoE/MLFz2oH2K4X8vcPL3pXAmKOgplR2IKW3sAW7
Sh7Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=Rnym1tXUoLx871f6In2W229Oo8uNB3KIHbnBfo/OA4Q=;
b=s1CL589GhOjzI2TEBH6EWeaiCptDTW8l81+Dxa4F5qsDyUDLEETM2+wLOgb8/krGLy
xwuBaap1bbIVzSNYTRABWuXuZp7ZtCENXF5SwNrqSC5Z3GWP9BXpCF89vDLS3/XZlm/N
aeYJ6y1mxuJz4jk0jSuW9BSh0N4Md09F5lRIV3asc5ntgqqt0WH2weoutYUNP8BGPTyf
zxqmzWrR/rjR74mzrnV6vK8rPwIYc+6VEGWndGjEM1MLyY3uWHiVSOpHNGbz2OzEPVE4
oZ3ymsmk6E763W0TXsSf+P+XTa7J+lHAVoQwg9okm/tKRfLHYSIL7Q7AdRgGnZQIDZXr
B3Sw==
X-Gm-Message-State: AMke39nbY7zp6BiKhofFH46POLXNqeRuszQ66wP6Z3FnOGg1UW+HuSQiHSvIUrhpUyiDup+z9S+y44PX87eqyg==
X-Received: by 10.223.172.77 with SMTP id v71mr24393529wrc.131.1489257584956;
Sat, 11 Mar 2017 10:39:44 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <20170311182128.49ef901fa59bbb5bb23aee1e@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>
<20170311182128 DOT 49ef901fa59bbb5bb23aee1e AT gmail DOT com>
From: "Luis de Arquer (ldearquer AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Sat, 11 Mar 2017 19:39:44 +0100
Message-ID: <CAGqyy=ZPkj82-K6NW9dFSwt7s6LXD92Ka6A1_0OTVYUKYfW2wA@mail.gmail.com>
Subject: Re: [geda-user] Rubberband move keeping lines direction
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

2017-03-11 18:21 GMT+01:00, Nicklas Karlsson
(nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com]
<geda-user AT delorie DOT com>:
>
>> 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.
>

Actually it was more of an integer geometry issue. We are talking here
about 3 lines, 1 "main" line that we are moving, and two
adjacent/neighbour lines. In order to keep directions while moving,
the main line moves towards/from the point defined as the intersection
of the two neighbour lines -included the case of infinite
intersection, i.e. parallelism.

__  A
     \
      \  B
       |

There are two points A and B which define the main line, and which you
can try to keep
aligned to grid, which is doable for 45/90 lines. However, and this is
my point, I don't think it is guaranteed that they can be snapped
simultaneously on the generic case, where lines can have any
direction. Or even if they can, the first occurrence of such snapping
could well be tens of grid points away. Think of a line with slope
19/1 and another one with slope 1/7.

I am glad you are finding it useful!

- Raw text -


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