[ 
https://issues.apache.org/jira/browse/LUCENE-7938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16135482#comment-16135482
 ] 

Karl Wright commented on LUCENE-7938:
-------------------------------------

[~ivera], this is by design.  Bounding boxes are supposed to *contain* the 
objects within; there are indeed some rare cases where it is difficult to 
compute the bounding box and we return a larger box as a shortcut.

Furthermore, you should not modify the "equals" method to allow a match that is 
not a precise object match; that's a violation of the contract of "equals".

I'm going to close this as "not a bug".



> Bounds of bounding box are not equal to bounding box
> ----------------------------------------------------
>
>                 Key: LUCENE-7938
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7938
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Ignacio Vera
>            Assignee: Karl Wright
>            Priority: Minor
>         Attachments: LUCENE-7938-fix.patch, LUCENE-7938-test.patch
>
>
> Hi,
> It seems if I get the bounds of a BBox and I create a new bounding box, 
> sometimes both bounding box are not equal. It is a problem with precision.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to