
28 Aug
2009
28 Aug
'09
8:50 p.m.
Michael Fawcett wrote:
Shows both operator| and operator+ as being the same thing - a boolean OR between two polygons.
If there is some precedent for this, I accept, but if there isn't, I would much rather prefer a single way of doing things. I suggest dropping operator+ and operator*. Their counterparts make much more sense to me.
The minus operation is "-" and the xor operation is "^", so neither arithmetic operators nor logic operators cover all common operations. But I agree that the logic operators are more intuitive than the arithmetic operators. And "A-B" should be equivalent to "A & not(B)", so the logic operators should be sufficient, at least in theory.