X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-TCPREMOTEIP: 207.224.51.38 X-Authenticated-UID: jpd AT noqsi DOT com Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [geda-user] Apollon From: John Doty In-Reply-To: <201509132031.t8DKVH0P000824@envy.delorie.com> Date: Sun, 13 Sep 2015 15:00:26 -0600 Message-Id: References: <20150913140631 DOT 1da1b78d AT jive DOT levalinux DOT org> <201509131529 DOT t8DFTUVS022118 AT envy DOT delorie DOT com> <201509131824 DOT t8DIOCBc028428 AT envy DOT delorie DOT com> <201509132031 DOT t8DKVH0P000824 AT envy DOT delorie DOT com> To: geda-user AT delorie DOT com X-Mailer: Apple Mail (2.1878.6) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t8DL0eNR027641 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 On Sep 13, 2015, at 2:31 PM, DJ Delorie wrote: > >> What I meant to say is that the rational number solution is >> gridless. It has a base unit, but you can have coordinates like >> 45634/1299709. > > Understood, but even a common angle like 60 degrees can't be > represented exact ly as a rational fraction. Yes. But that’s more of a problem with floating point. What you really want in the Cartesian representation is sines and cosines, but sin( 60 degrees ) is irrational, not representable in floating point. If you represented geometry as expressions in sympy, you could could have a closed, error free system for any displacement or rotation you can practically describe. But that might be a bit much. > > I agree that storing angles as vectors makes sense, but I'm thinking > of accumulated error and undo; storing the original angle as an angle > might be useful too. > Perfect undo is easy. Angles are represented by pairs of integers, with no roundoff error within that closed system. You only accumulate error with respect to your external expectations going forward. But how many layers of rotation do you typically have in a practical design? Maybe three, four? Within the system, all calculations are exact. John Doty Noqsi Aerospace, Ltd. http://www.noqsi.com/ jpd AT noqsi DOT com