You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Juntunen (Jira)" <ji...@apache.org> on 2019/12/27 19:45:00 UTC
[jira] [Created] (GEOMETRY-82) Make Region extends Predicate
Matt Juntunen created GEOMETRY-82:
-------------------------------------
Summary: Make Region extends Predicate
Key: GEOMETRY-82
URL: https://issues.apache.org/jira/browse/GEOMETRY-82
Project: Apache Commons Geometry
Issue Type: Improvement
Reporter: Matt Juntunen
The {{Region}} interface has a {{contains(Point)}} method that returns a boolean indicating whether or not a point lies inside or on the boundary of the region. I think this makes it a good candidate for extending the {{Predicate}} interface. There are two options:
1. Rename {{contains}} to {{test}}
2. Add {{test}} with a default implementation that simply calls {{contains}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)