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

Matt Juntunen commented on GEOMETRY-143:
----------------------------------------

I've been looking at this for the past couple of days and I believe the issue 
is deeper than just this one case. The behavior of {{CutAngle.classify}} is not 
well defined in general with input values close to zero. I'm using the 
submitted patch as a starting point, adding additional unit tests, and trying 
to settle on an implementation. I hope to have a PR ready for review soon.

> AngularInterval missclassify max boundary at 2pi-  as outside
> -------------------------------------------------------------
>
>                 Key: GEOMETRY-143
>                 URL: https://issues.apache.org/jira/browse/GEOMETRY-143
>             Project: Apache Commons Geometry
>          Issue Type: Bug
>          Components: Spherical 1D
>            Reporter: Ron Goldman
>            Priority: Major
>         Attachments: patch
>
>
> When a AngularInterval has maxBoundary smaller than 2pi and equivalent to 2pi 
> within precision, then the interval has false wrapZero but the upper boundary 
> is classified by minBoundary as positive. as a result the point is classified 
> as outside the interval instead of  on the boundary. 
> can be confirmed with the test:
> checkInterval(AngularInterval.of(6,Double.parseDouble("0x1.921fb54442c8ep2"),TEST_PRECISION),6,Double.parseDouble("0x1.921fb54442c8ep2"));



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to