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=Ii/iIA86ZzKE6EkQUP1PHw77IefxVtjOM+pu267DL+0=; b=cVhDHrcHAdqwh+zQgGqumqR3Fu6BZHtjF8GKmghp5BgLs3oyVHKjmobXMzNkbSXNBv OPPQGBdS0uTEDIGgBr2UrgKl+wySqK6LUmv5mh0pGOMnJL0lcaC38XpokMwFO4k9Zeff GioNdw4m9ft4XWdKjNRqx70TTCkVGViFRr12gHnt37VmSxlpSVtWjQUS9fp+vAHOm3s9 QZR+cEhdbjmxuyePw1RIJpu6+UAe4HtBPpuY0VrORw6umD11KbT0jCF6QYbbGXNG7c8n sK5VbEb1QoSJa+uNSSdjZWWVQLIBPTL5znsL8Qv1cuKWLRMU+HlKlxPIAD1q1hV5z5Vh IsWw== 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=Ii/iIA86ZzKE6EkQUP1PHw77IefxVtjOM+pu267DL+0=; b=JNCH/qjNTeMA/pWCW53m42LQ/W8hKujkuUIYw0u/vLj0k/lX4rBUrBtvp41wUJi8G/ fEW/gi0qyM+CcIkvmM/EVoQUrjFlwdxPwP7P5+zXTgGeiXkFfyFnOX38SDFb9AlQSo6p OZtb9roTOI7UlwhRUOCkapZOocwHVlQ1XuUKs2XZr6O3UPsfWG5ZF5jz4m6zoQttpdEA SRj1vlbJ9Xyx5nY/CUmI0iO/yI23INwh90XZNxOXCq2+aU97vN6kwzoHHn8G/3CqWX3N HS6z18QtAG5U6Dn9GwVHjEGwdh/vvjVgtGTAP95xeNoVFRBnxDaoMz0oEvzGY3RcTyQ4 PX/Q== X-Gm-Message-State: AMke39limS1C5mSjebCnzDK683bAcQwyEF9hDNb1+sQX3oSrzKtXa2k62QgRb6uj49QOxcxnTLeEqdszuonZnQ== X-Received: by 10.28.226.4 with SMTP id z4mr15214395wmg.135.1488834892903; Mon, 06 Mar 2017 13:14:52 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20170306212421 DOT a658cb36967460efbe4ba474 AT gmail DOT com> From: "Luis de Arquer (ldearquer AT gmail DOT com) [via geda-user AT delorie DOT com]" Date: Mon, 6 Mar 2017 22:14:52 +0100 Message-ID: Subject: Re: [geda-user] Rubberband move keeping lines direction To: geda-user AT delorie DOT com Content-Type: text/plain; charset=UTF-8 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 Precedence: bulk Oh, all my code GPLv2 or later I'll put the notice on the new files 2017-03-06 21:55 GMT+01:00, Luis de Arquer : > Actually, I sort of implemented it, but I forgot to add the new files > to the patch I sent! > This time, I am attaching the full patch. > > 2017-03-06 21:24 GMT+01:00, Nicklas Karlsson > (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com] > : > >> I you remember original position line should be elongenated until it hit >> the >> moved line. You need to calculate the intersection point, it is a good >> idea >> to remember original point during move and if workin 45 or 90 degree >> angles >> on a grid rounding errors will probably not be a problem, I think anyway. >> > > It's good you say that as that's exactly what I did! The movement > vector goes from line mid point to neighbour lines' intersection. Have > a look at FitCrosshairIntoGrid( ). > But actually I am not fitting to the grid, and I gave up on 45/90 grid > alignments; that's why I moved to floating point, and made it generic > to any angle, which seems to work fine. > Anyway, it should be enhanced to grid-align on 45/90 as you say. > Maybe, if you could try the patch, you could let me know if it works > as you expect > > I am trying to understand better how the Undo thing works, to complete > the implementation. > > Luis >