|
|
Hi folks!
I've seen this kind of syntax here and there:
scale x + z + y*0.03
I don't like it as it is not clear what it does without having to analyse
it for a moment
From what I gathered and from normal operator precedence this is the same
as:
scale x*1 + z*1 + y*0.03
or
scale <1,0.03,1>
I figured the syntax not so clear syntax is to avoid the "cannot scale by
0 warning" when one uses this syntax:
scale y*0.03
I'm not saying it's good or bad, I just don't like when I have to ponder
on such a simple statement in order to figure out what it's doing.
Would it not be wise for the scale statement to assume 1 instead of 0 for
those vectors that are not specified.
I may not realise what other impact this may have on the system as a
whole.
Just thought I would mention it.
Thanks
--
Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA
Post a reply to this message
|
|