Re: [math] geometry algorithms

2012-10-15 Thread Gilles Sadowski
Hello. > >> [...] > >> > >> public interface ConvexHull { > >> Vector[] generate(Vector[] points); > >> } > > > > I think that you should use "List" instead of arrays (even "Iterable" > > whenever possible); it will be plainly more flexible. Just a little > > thought... > > I have now severa

Re: [math] geometry algorithms

2012-10-15 Thread Thomas Neidhart
On 10/10/2012 12:04 AM, Gilles Sadowski wrote: > Hi. > >> [...] >> >> public interface ConvexHull { >> Vector[] generate(Vector[] points); >> } > > I think that you should use "List" instead of arrays (even "Iterable" > whenever possible); it will be plainly more flexible. Just a little > tho

Re: [math] geometry algorithms

2012-10-10 Thread Gilles Sadowski
Hello. > > >>> I started to work on the proposed new features, namely convex hull and > >>> voronoi diagrams but am a bit stuck with the API design. > >>> > >>> The current type structure in the geometry package introduced a so > >>> called Space with different implementation for 1D, 2D and 3D. T

Re: [math] geometry algorithms

2012-10-10 Thread Thomas Neidhart
On 10/10/2012 02:09 PM, Gilles Sadowski wrote: > Hello. > Hi Luc, Gilles, >>> I started to work on the proposed new features, namely convex hull and >>> voronoi diagrams but am a bit stuck with the API design. >>> >>> The current type structure in the geometry package introduced a so >>> called S

Re: [math] geometry algorithms

2012-10-10 Thread Gilles Sadowski
Hello. > > > > I started to work on the proposed new features, namely convex hull and > > voronoi diagrams but am a bit stuck with the API design. > > > > The current type structure in the geometry package introduced a so > > called Space with different implementation for 1D, 2D and 3D. To > > r

Re: [math] geometry algorithms

2012-10-09 Thread Gilles Sadowski
Hi. > [...] > > public interface ConvexHull { > Vector[] generate(Vector[] points); > } I think that you should use "List" instead of arrays (even "Iterable" whenever possible); it will be plainly more flexible. Just a little thought... Regards, Gilles > [...]

Re: [math] geometry algorithms

2012-10-09 Thread Luc Maisonobe
Le 09/10/2012 20:21, Thomas Neidhart a écrit : > Hi, Hi Thomas, > > I started to work on the proposed new features, namely convex hull and > voronoi diagrams but am a bit stuck with the API design. > > The current type structure in the geometry package introduced a so > called Space with differ

[math] geometry algorithms

2012-10-09 Thread Thomas Neidhart
Hi, I started to work on the proposed new features, namely convex hull and voronoi diagrams but am a bit stuck with the API design. The current type structure in the geometry package introduced a so called Space with different implementation for 1D, 2D and 3D. To represent a Vector in the respect