Re: Re: [geometry] PointMap and PointSet

2022-03-26 Thread Matt Juntunen
Hello, This kind of API sounds useful but not directly related to the PointMap/Set types. As you mentioned, it seems like the API would most likely use PointMap/Set internally. I believe the next step should be to create a JIRA issue and figure out the details there. Since it sounds like there ar

Re: Re: [geometry] PointMap and PointSet

2022-03-23 Thread Gilles Sadowski
Hi. Le mer. 23 mars 2022 à 03:27, Matt Juntunen a écrit : > > Gilles, > > > Say, for example, that "V" holds a single (floating-point) value. We > > insert entries > > map.put(x, 2); > > map.put(y, 8); > > assuming that "x" and "y" and just barely different, according to the > > chosen "precis

Re: Re: [geometry] PointMap and PointSet

2022-03-22 Thread Matt Juntunen
Gilles, > Say, for example, that "V" holds a single (floating-point) value. We > insert entries > map.put(x, 2); > map.put(y, 8); > assuming that "x" and "y" and just barely different, according to the > chosen "precision context". Then: > z = (x + y) / 2; // Pseudo-code. > m = map.get(z); >

Re: Re: [geometry] PointMap and PointSet

2022-03-22 Thread Gilles Sadowski
Le mar. 22 mars 2022 à 14:46, Matt Juntunen a écrit : > > Hello, > > Unless there are any other comments on the PR, I'm going to plan on > merging it into master within the next couple of days. > Thanks for providing this new functionality. Do you envision that [Geometry] will also provide ways

Re: Re: [geometry] PointMap and PointSet

2022-03-22 Thread Matt Juntunen
Hello, Unless there are any other comments on the PR, I'm going to plan on merging it into master within the next couple of days. Regards, Matt On Sun, Mar 20, 2022 at 11:39 AM Matt Juntunen wrote: > > Hi Eric, > > > Would Java’s Map.entrySet provide the “getEntry” type method needed? > > https

Re: Re: [geometry] PointMap and PointSet

2022-03-20 Thread Matt Juntunen
Hi Eric, > Would Java’s Map.entrySet provide the “getEntry” type method needed? > https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#entrySet-- > Or would this provide all entry’s and still need to find the specific entry > so maybe a forEach variation to filter for a specific entry? >

Re: Re: [geometry] PointMap and PointSet

2022-03-20 Thread Eric Bresie
> > On March 14, 2022 at 10:19:14 AM CDT, Matt Juntunen > mailto:matt.a.juntu...@gmail.com)> wrote: > > > I'm a little bit confused: Isn't it always the case that > getEntry(p).getKey() > will return the originally inserted (i.e. "canonical") point (i.e. not "p")? > > Map does not contain a "get