POV-Ray : Newsgroups : povray.bugreports : Can't define 4d vectors : Re: Can't define 4d vectors Server Time
28 Jun 2024 01:23:31 EDT (-0400)
  Re: Can't define 4d vectors  
From: Nathan Kopp
Date: 23 Oct 1998 01:52:17
Message: <36300B28.8233D249@ltu.edu>
Philippe Debar wrote:
> 
> This:
> 
> #declare aVector=<1,2,3,4>;
> 
> gets me an error, altough the manual say you can define 4d and 5d vectors.

That's true, but

#declare a = color<1, 2, 3, 4>;

works just fine.  This also works for 5-d vectors.  Maybe it should be
changed, but it was done intentionally, so it's not really a 'bug'.
Apparantly there is a conflict between the program and the documentation,
so one of them needs to be changed.  I personally think that POV should
be changed so you don't need the 'color'.

NOTE:  you could also use rgbf instead of color for 4-d vectors, and
       rgbft for 5-d vectors.

-Nathan Kopp


Post a reply to this message

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