Just do this: #macro vlength4d(V) (sqrt( V.red*V.red + V.green*V.green + V.blue*V.blue + V.filter*V.filter )) #end The extra parenthesis should not be necessary, but I have had situations before where they made a difference.
Post a reply to this message