Baljit Singh created GEOMETRY-51: ------------------------------------ Summary: EpsilonDoublePrecisionContext allows negative epsilon Key: GEOMETRY-51 URL: https://issues.apache.org/jira/browse/GEOMETRY-51 Project: Apache Commons Geometry Issue Type: Bug Reporter: Baljit Singh
EpsilonDoublePrecisionContext does not validate the epsilon to be positive (0 or greater). The comparison is based on Precision.compareTo(double, double, double), which itself calls Precision.equals(double, double, double), which then compares using Math.abs(y - x) <= eps. If epsilon is negative, the comparison in invalid. -- This message was sent by Atlassian JIRA (v7.6.3#76005)