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=pHOtfnfMCO9aTxKeMyZIfwpAx1C4EXlQxi+T2DRzJRE=; b=YIAAVXFyC7FfemryJSbg/LfsvxI2t5Ey/lfjFF6/+yG4QqcJAdcGZ/kNrbEGOHTEvx B6ewBTdwU21CbHATIRMVMDmVhcmU8LfRj8l4ygT914s+FhWLRgjrAfWPJi0AOOQkfHFS xd+VwG3l4jVlNaOxJqttF20ZBHlFO2T8yRAsN+LjjeS3WrGO6JPSoKCfEhbcCLEP6nmS 2OBSVNeDI9nHVBnM2ETJi8rHOqUbPrx5ALXZL72io+Lp6vrsZCVp8kRtwcH0/fqnkV86 2RlxViCjGygkouzA/qJuXHujo0oHZc5TmJrBqtydtgTWxvz+fcQoNVg+HaVhMFT5dxhN HkoA== 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=pHOtfnfMCO9aTxKeMyZIfwpAx1C4EXlQxi+T2DRzJRE=; b=foASDXxCMN/RUcWvhl2ZpagTp/A5X8wZKXOmnVC7gn5kbcpucRsdi019NlJGhL9/PH u5EIPtbdfW5POaoMtJw7IE3T+Jk0OxwJFFGXJ4fkkeEikwrWjYL4i4670JYg6wKin2WM J29pe116DDGvPHBrhMwyRA02hYtBMeSxDrMWRJQalKvVlSumAoOSochSe8kdhpFzFa6Z xQATLAF4i7YAumKRWYta9BhgcizYwWOSGXaqtaTwNwHiLYxP6QMoq5yC4a02RCcpXywX md0C5FFyoa4o0ze0pyn19zOJjmEE9IQ50PGlNMImWV9cWEKXLMNJouveydjOj8zRYbqP pc/g== X-Gm-Message-State: AMke39kz64LOM5z2mmisjHsMHQb0bF06z0cxCGQxLfgiuK9Dg/BNKCGzouJTsXJM0bI1NMA/vDSPzSLNN6nZyQ== X-Received: by 10.28.182.10 with SMTP id g10mr16061483wmf.123.1488841095654; Mon, 06 Mar 2017 14:58:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20170306220819.0a3d94a79f74b74976ff82d9@gmail.com> References: <20170306212421 DOT a658cb36967460efbe4ba474 AT gmail DOT com> <20170306220819 DOT 0a3d94a79f74b74976ff82d9 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 23:58:15 +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 2017-03-06 22:08 GMT+01:00, Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user 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). The problem was that, snapping to grid for any angle is perhaps impossible -think of a neighbour track with a 100/1 slope, it would distort the cursor movement so much. Also, if both neighbour lines have cumbersome slopes, it could even be impossible to do a grid aligned movement at all. But yeah, 45/90 could definitely benefit from grid alignment! Luis