|
![](/i/fill.gif) |
You could do a macro solution :
#macro SetComponent3D(V1, C, V2)
C * V2 + (<1, 1, 1> - C) * V1
#end
#declare MyArray[Dim1][Dim2][Dim3][Dim4] =
SetComponent3D (
MyArray[Dim1][Dim2][Dim3][Dim4],
y,
stuff * MyArray[Dim1][Dim2][Dim3][Dim4]
)
Okay, so it's not terribly elegent, but perhaps
it's better than nothing....
Margus Ramst wrote:
> This would be much more elegant:
>
> #declare MyArray[Dim1][Dim2][Dim3][Dim4].y=
> MyArray[Dim1][Dim2][Dim3][Dim4].y*Stuff;
>
> I'm just lazy, I guess...
--
http://www.flash.net/~djconnel/
Post a reply to this message
|
![](/i/fill.gif) |