Benjamin Krogh created GEOMETRY-58:
--------------------------------------

             Summary: WelzlEncloser throws MathInternalError
                 Key: GEOMETRY-58
                 URL: https://issues.apache.org/jira/browse/GEOMETRY-58
             Project: Apache Commons Geometry
          Issue Type: Bug
          Components: Euclidean 2D
            Reporter: Benjamin Krogh


The following code snippet throws a MathInternalError exception:
{noformat}
@Test
public void testEnclosingWithPrecision() {
    final List<Vector2D> points = Arrays.asList(
            Vector2D.of(271.59, 57.282),
            Vector2D.of(269.145, 57.063),
            Vector2D.of(309.117, 77.187),
            Vector2D.of(316.989, 34.835),
            Vector2D.of(323.101, 53.972)
    );
    double precision = 1;
    DoublePrecisionContext precisionContext = new 
EpsilonDoublePrecisionContext(precision);
    WelzlEncloser< Vector2D> encloser = new WelzlEncloser<>(precisionContext, 
new DiskGenerator());
    encloser.enclose(points);
}{noformat}



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

Reply via email to