POV-Ray : Newsgroups : povray.bugreports : Bug in 2d vectors Server Time
23 Dec 2024 07:47:53 EST (-0500)
  Bug in 2d vectors (Message 1 to 2 of 2)  
From: Daniele Varrazzo
Subject: Bug in 2d vectors
Date: 11 Mar 1999 09:59:41
Message: <36e7da5d.0@news.povray.org>
Why

#declare V2 = <10, 20>;
#debug concat(str(V2.u,0,0),"\n")

works (and returns "10") but

#declare V2 = <10, 20>;
#debug concat(str(V2.v,0,0),"\n")

gives a "bad operands for period operator"?

See also that
#declare V2 = <10, 20>;
#declare V3 = <0,0,0>;
#declare V = V2+V3;
#debug concat(str(V.x,0,0)," ",str(V.y,0,0)," ",str(V.z,0,0),"\n")

gives ar result "10 10 10" (thus I think promotions don't work).

It behaves like this since 3.0 version, both under windows and ms-dos.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Bug in 2d vectors
Date: 11 Mar 1999 14:03:15
Message: <36e81373.0@news.povray.org>
In article <36e7da5d.0@news.povray.org> , "Daniele Varrazzo" 
<pir### [at] officineitnospam> wrote:

> #declare V2 = <10, 20>;
> #debug concat(str(V2.u,0,0),"\n")
>
> works (and returns "10") but
>
> #declare V2 = <10, 20>;
> #debug concat(str(V2.v,0,0),"\n")
>
> gives a "bad operands for period operator"?

These two work for me (POV-Ray 3.1d).

> #declare V2 = <10, 20>;
> #declare V3 = <0,0,0>;
> #declare V = V2+V3;
> #debug concat(str(V.x,0,0)," ",str(V.y,0,0)," ",str(V.z,0,0),"\n")

This does not...I forwarded it to Chris Young.


     Thorsten


Post a reply to this message

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