[eigen] Re: proposal: call the Geometry module experimental

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Ah i remember now what was the point of Translation and Scaling: to
allow to construct a Transform by doing

translation * rotation * scaling

and other expressions.

However, since Translation and Scaling are useless for storage, I
think that they could be made much more simple proxys around vectors,
and do

v.asTranslation()

(returning a proxy) instead of

Translation(v);

Benoit

2009/1/22 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> Hi,
>
> I propose to call the Geometry module experimental for the 2.0 release.
>
> I'd still make sure to preserve compatibility for the subset that I
> know Krita uses (and also Avogadro).
>
> But i'd like to keep some freedom to improve the API.
> I think that some classes are useless as they are just trivial
> wrappers around vectors: Translation and Scaling. Moreover as Ben's
> email shows they can be confusing as a geometric scaling is in general
> not representable by class Scaling (as soon as the scaling axes are
> rotated).
>
> The alternative would be to selectively mark classes as experimental,
> but i have an overall uneasy feeling about part of the Geometry module
> API.
>
> Cheers,
> Benoit
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/