|
|
Can I declare the y component only?
For example, if I want to say,
#declare velocity[n].y=velocity[n].y*0.9;
Do I have to say,
#declare velocity[n]=<velocity[n].x,velocity[n].y*0.9,velocity[n].z>;
The former OUGHT to be good enough! I think pov gave me error messages
until I went to the trouble of the latter.....
Post a reply to this message
|
|
|
|
Greg M. Johnson wrote:
>
> Can I declare the y component only?
>
> For example, if I want to say,
>
> #declare velocity[n].y=velocity[n].y*0.9;
>
> Do I have to say,
>
> #declare velocity[n]=<velocity[n].x,velocity[n].y*0.9,velocity[n].z>;
>
> The former OUGHT to be good enough! I think pov gave me error
> messages until I went to the trouble of the latter.....
No, you cannot declare just one component. However, you can do this:
#declare velocity[n]=velocity[n]*<1,.9,1>;
which does what your code does, but with less typing.
Regards,
John
--
ICQ: 46085459
Post a reply to this message
|
|