POV-Ray : Newsgroups : povray.bugreports : Bug in 2d vectors : Bug in 2d vectors Server Time
23 Jun 2024 15:21:22 EDT (-0400)
  Bug in 2d vectors  
From: Daniele Varrazzo
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

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