Matt Juntunen created MATH-1447:
-----------------------------------
Summary: 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: 3.6, 3.5, 4.0
Reporter: Matt Juntunen
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}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)