Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0, 3.6
-
None
-
None
Description
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.
Pull request: https://github.com/apache/commons-math/pull/80