[
https://issues.apache.org/jira/browse/GEOMETRY-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743377#comment-17743377
]
Gilles Sadowski commented on GEOMETRY-160:
------------------------------------------
{quote}Use-cases are: [...]
{quote}
*No.* In the context of (plain) {_}geometry{_}, please.
No application in the domains which you listed would add a dependency on
"Commons Geometry" for the sake of not implementing a method like
{{getIndicesOfOccurenceOfElement}} (that is trivial compared to functionality
needed to create such an application).
bq. no, I wouldn't create
getIndicesOfOccurenceOfElementSmallerThanOrEqualToThreeTimesTheLastElement(List<Double>
list).
That was the one _rhetorical_ question. There were real questions, such as how
one can determine what belongs in the API within a given scope, and the best
(most concise) way to provide some utility.
> Implement getIndicesOfOccurenceOfElement(Vector x, double element)
> ------------------------------------------------------------------
>
> Key: GEOMETRY-160
> URL: https://issues.apache.org/jira/browse/GEOMETRY-160
> Project: Commons Geometry
> Issue Type: New Feature
> Components: euclidean1D, euclidean2D, euclidean3D
> Reporter: Dimitrios Efthymiou
> Priority: Minor
> Labels: features
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> If we have a vector u = (2, 1, 3, 1, 7) and a number, say, 1 then it returns
> a list of the indices 1 and 3
--
This message was sent by Atlassian Jira
(v8.20.10#820010)