POV-Ray : Newsgroups : povray.beta-test : Are '&' and '|' switched? : Re: Are '&' and '|' switched? Server Time
30 Jul 2024 22:18:44 EDT (-0400)
  Re: Are '&' and '|' switched?  
From: Francois Labreque
Date: 26 Sep 2001 17:03:34
Message: <3BB2426F.8060805@videotron.ca>
ingo wrote:

> Expected the outcome of the scene below to be te other way around.
> 
> ---%<------%<---
> #declare F=function(a){a>-1 | a<1}  //returns  0 0 1 0 0
>                                     //expected 1 1 1 1 1
> 
> //#declare F=function(a){a>-1 & a<1}  //returns 1 1 1 1 1
>                                     //expected 0 0 1 0 0

Confirmed.

Athlon 650MHz. Win98 2nd Ed.  PoV 3.5.beta4

-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   videotron.ca  */}camera{location<6,1.25,-6>look_at a orthographic}


Post a reply to this message

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