You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Baljit Singh (JIRA)" <ji...@apache.org> on 2019/04/11 16:35:00 UTC

[jira] [Updated] (GEOMETRY-51) EpsilonDoublePrecisionContext allows negative & NaN epsilon

     [ https://issues.apache.org/jira/browse/GEOMETRY-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Baljit Singh updated GEOMETRY-51:
---------------------------------
    Description: 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 or NaN, the comparison is invalid.  (was: 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.)

> EpsilonDoublePrecisionContext allows negative & NaN epsilon
> -----------------------------------------------------------
>
>                 Key: GEOMETRY-51
>                 URL: https://issues.apache.org/jira/browse/GEOMETRY-51
>             Project: Apache Commons Geometry
>          Issue Type: Bug
>            Reporter: Baljit Singh
>            Priority: Major
>
> 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 or NaN, the comparison is invalid.



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