commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Juntunen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MATH-1449) PolygonsSet.getBarycenter() returns incorrect value for empty region
Date Sun, 04 Feb 2018 19:14:00 GMT
Matt Juntunen created MATH-1449:
-----------------------------------

             Summary: PolygonsSet.getBarycenter() returns incorrect value for empty region
                 Key: MATH-1449
                 URL: https://issues.apache.org/jira/browse/MATH-1449
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.6, 4.0
            Reporter: Matt Juntunen
             Fix For: 4.0


The o.a.c.m.geometry.euclidean.twod.PolygonsSet.getBarycenter() method returns the point (0,
0) when the region is empty. It should return (NaN, NaN) since the barycenter does not exist.
This is the behavior of IntervalsSet and PolyhedronsSet.



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

Mime
View raw message