From: François Duranleau (duranlef_at_[hidden])
Date: 2007-10-05 15:23:36
On Fri, 5 Oct 2007, Michael Fawcett wrote:
> On 10/5/07, John Femiani <JOHN.FEMIANI_at_[hidden]> wrote:
>> Sounds great to me. Can or should we formalize this into a set of
>> concepts specific to points? Coordinate access is only a part of what a
>> point rewuires; There is the tricky relationship between points and
>> vectors (not std::vector!) and homogenous coordinates.
>> I.e. point+point is undefined, point-point is a vector, etc...
> This has been the source of quite a bit of contention in the past.
> The problem is, there are scientific users and applications where the
> distinction is highly important, and then there are game developers
> (and others I'm sure) who frequently mix both for optimization tricks
> and compatibility with the graphics API.
> If you can provide the distinction with no run-time overhead, and a
> no-overhead conversion to and from, I think both parties would sign
> off on it.
IIRC CGAL handles this quite nicely.
-- Francois Duranleau
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk