POV-Ray : Newsgroups : povray.unofficial.patches : Why & has higher precedence than + or - in isosurface functions? : Re: Why & has higher precedence than + or - in isosurface functions? Server Time
2 Sep 2024 06:12:24 EDT (-0400)
  Re: Why & has higher precedence than + or - in isosurface functions?  
From: Warp
Date: 4 Aug 2000 06:05:03
Message: <398a954f@news.povray.org>
pk <thi### [at] videotronca> wrote:
: What do you mean? Isosurfaces are booleans for me: at location <x, y,
: z>, there's a point(true, or 1), or there isn't any(false or 0)... So,
: you have a function that draw a plane, and another one that draws a
: sphere...
: You AND them... the result? a circle... You & them... the result? a
: circle...

  Well, here you are thinking about the set theory union. This has little to
do with the logical and-operator.

  And besides, the logical and-operator in programming languages has lower
precedence than + and - anyways. So in either way you want to think about it,
the current implementation is wrong.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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