On Tue, Nov 24, 2009 at 2:21 PM, Ulrich Hertlein <[email protected]> wrote: > Are there any arguments against also having a unary version? > Like (and like-wise for componentDivide): > > inline Vec4f& componentMultiply(const Vec4f& rhs) { > _v[0]*=rhs[0]; > _v[1]*=rhs[1]; > _v[2]*=rhs[2]; > _v[3]*=rhs[3]; > return *this; > }
I don't have any objections. I implement the Vec componentMultiply(Vec,Vec) version as it's more flexible than the unary version. Feel free to implemente if you have a need for a unary version. Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
