[ 
https://issues.apache.org/jira/browse/MATH-1447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gilles resolved MATH-1447.
--------------------------
    Resolution: Fixed

commit a37dcb93bed20ee302526473a9653f6cb5ae51a1

> PolygonsSet does not handle intersecting infinite lines
> -------------------------------------------------------
>
>                 Key: MATH-1447
>                 URL: https://issues.apache.org/jira/browse/MATH-1447
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 4.0, 3.5, 3.6
>            Reporter: Matt Juntunen
>            Priority: Major
>             Fix For: 4.0
>
>
> When created from boundaries consisting of two intersecting infinite lines, 
> PolygonsSet.getVertices() throws an IndexOutOfBoundsException.
> {{Ex:}}
>  {{Line line1 = new Line(new Cartesian2D(0, 0), new Cartesian2D(1, 1), 
> 1e-10);}}
>  {{Line line2 = new Line(new Cartesian2D(1, -1), new Cartesian2D(0, 0), 
> 1e-10);}}
> {{List<SubHyperplane<Euclidean2D>> boundaries = new ArrayList<>();}}
>  {{boundaries.add(line1.wholeHyperplane());}}
>  {{boundaries.add(line2.wholeHyperplane());}}
> {{PolygonsSet poly = new PolygonsSet(boundaries, 1e-10);}}
> {{poly.getVertices(); // throws exception}}
>  
> Pull request: https://github.com/apache/commons-math/pull/78



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to