commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nandor Kollar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1432) IndexOutOfBoundsException when calling PolygonsSet.getSize()
Date Wed, 10 Jan 2018 16:29:00 GMT

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

Nandor Kollar commented on MATH-1432:
-------------------------------------

[~erans] what kind of help do you require from a "beta-tester"? I'm not directly using commons
math, but if I can fit it into my time, I'm happy to help.

> IndexOutOfBoundsException when calling PolygonsSet.getSize()
> ------------------------------------------------------------
>
>                 Key: MATH-1432
>                 URL: https://issues.apache.org/jira/browse/MATH-1432
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>         Environment: Linux Fedora
> Java 8
>            Reporter: n
>              Labels: bug, exception
>
> Running the following code produces an IndexOutOfBoundsException:
>     public static void main(String[] args) {
>         List<Vector2D> vectors = new ArrayList<>();
>         vectors.add(new Vector2D(1, 1));
>         vectors.add(new Vector2D(1_189, 1));
>         vectors.add(new Vector2D(1_697_165, 147));
>         vectors.add(new Vector2D(1_592_444, 249_323));
>         vectors.add(new Vector2D(248_665, 110_887));
>         vectors.add(new Vector2D(37_142, 24_654));
>         vectors.add(new Vector2D(10_093, 8_137));
>         vectors.add(new Vector2D(966, 823));
>         vectors.add(new Vector2D(25, 25));
>         new MonotoneChain().generate(vectors).createRegion().getSize();
>     }
> Forgive the weird vector values!



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

Mime
View raw message