boostorg / boostorg/geometry

Proposal: Add OR operator to predicates (Rtree)

オープン
#593 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
C++
スター
517
フォーク
232
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello,

Using Rtree, I fell into the case where I need to know whether a box is within another box OR overlaps it. The current implementation doesn't allow this operation.
In my understanding, I can't see any reason not to allow it, as AND and NOT are allowed.
We can't even use De Morgan's law (`A || B = !(!A && !B)`) as we can't negate a whole expression (AND operator returns a boost::tuples::cons and not another predicate with the NOT operator implemented).

Maybe there is a limitation I can't see, if there is, I'll be happy to know it ;)
Thanks !

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。