|
Boost : |
Subject: Re: [boost] Formal Review: Boost.Polygon starts today August 24, 2009
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2009-09-03 09:20:18
Simonson, Lucanus J wrote:
> John Phillips wrote:
> > You have made variations of this assertion a few times in this
> > thread, and I wanted to point out one problem with it.
> >
> > The distribution of the integers is not the same as the
> > distribution of the floating point numbers.
[snip]
> > So the user will be forced to choose between overflow errors
> > or lost precision.
>
> This is true, of course. However, in such systems where
> large and small scales mix, floating point is itself
> problematic. When snapping a large scale intersection point
> to the floating point grid it may cause a long edge to sweep
> arbitrarily far, potentially crossing to the other side of
> large numbers over vertices at a small scale near the
> floating point origin. I would say that in general planar
> geometry has the property that precision of all points is
> equally important, and that floating point just provides the
> convenience of ignoring scale. We mix large and small scale
> features in VLSI, our package layer looks like a PCB, while
> the metal layers below are many orders of magnitude smaller.
> If you can't represent the small features in your integer
> type because the extents of your large features are simply
> too huge you have many many many orders of magnitude
> difference between them, enough that by definition you won't
> be happy with floating point calculations either.
FAQ fodder?
_____
Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
Susquehanna International Group, LLP http://www.sig.com
IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk