POV-Ray : Newsgroups : povray.general : Q: dot operators : Re: dot operators Server Time
13 Aug 2024 03:15:07 EDT (-0400)
  Re: dot operators  
From: Margus Ramst
Date: 18 Nov 1998 20:40:33
Message: <36537750.366A8130@peak.edu.ee>
Of course it's not very important. I asked because I recently had to do sth.
like this:

#declare MyArray[Dim1][Dim2][Dim3][Dim4]=
        <MyArray[Dim1][Dim2][Dim3][Dim4].x,
         MyArray[Dim1][Dim2][Dim3][Dim4].y*Stuff,
         MyArray[Dim1][Dim2][Dim3][Dim4].z>;

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...

Margus

Ron Parker wrote:
/.../
> Since it's just syntactic sugar and could be accomplished other ways, I see
> no reason to implement it except perhaps for parallelism with C.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.