|
From: S.K.Bose <bo...@pa...> - 2001-10-12 05:25:01
|
On 10 Oct 2001, Braden McDaniel wrote: > > In general, class interfaces should not provide multiple means of doing > the exact same thing. The methods MMleft() and MMright() provide the > necessary functionality; and I prefer this approach as it is consistent > with the ECMAScript VrmlMatrix definition. Technically I am not convinced after all it is C++ lib. In VrmlSFVec3f we have the methods getX(), getY() and getZ() but still we have the operator [] Why? Because this is more convenient and conventional notation. We are more *familiar* and *comfortable* with this notation from our school days through textbook. > * Rather than have the static method identity(), why not just > have the default constructor create an identity matrix? > Probably you are right. I was more concerned about performance. Bose |