Hi Chris, hi Robert,

Chris 'Xenon' Hanson schrieb:
Robert Osfield wrote:
Thanks Chris, changes now merged and submitted to svn/trunk.  The
submission does make we wonder about whether we need to add the Vec *
Vec and Vec / Vec though.  I'm also slightly cautious about these
methods as they aren't proper vector maths (such as dot and cross
products), but rather vector component maths that are only relevant in
certain situations such as colour manipulation.  Should we be
documenting this difference?

  Good question. Vec *= is certainly used by whole-vector operations like
normalize/unitize, so the distinction is a blurry one.

Well, I don't think the distinction is blurry at all.
The Vec-classes do model (normed) vector spaces
and the operators Vec*float  or Vec*=float are
part of the definition of a vector space
(see e.g. http://en.wikipedia.org/wiki/Vector_space).

The new per-component operators Vec*Vec or Vec/Vec
are not part the theory of vector spaces and might
confuse people (they could think that the Vec*Vec-operator
is the dot- or cross-Product which is both wrong).

I would prefer to rename these operators to regular
methods instead which could be called "perComponentMultipy"
and "perComponentDivide" or something like that.
That would remove all potential of misunderstanding.

Cheers,

Peter


--
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to