Philippe Rivière

Results 1049 comments of Philippe Rivière

Implemented by https://github.com/d3/d3-quadtree/pull/28 ; please test & comment! demo @ https://observablehq.com/d/07d5853f05318fb2

A point that is on the upper limit (of x or of y) belongs to the quad that is above it. ```js d3.quadtree([[0, 0]]).cover(0.99999999, 0).extent() // [[0,0],[1,1]] d3.quadtree([[0, 0]]).cover(1, 0).extent()...

For me it was important to have one prng, and LCG was ready first. Beyond that, I'm not sure if d3-random should include more than one. At least there needs...

I'm testing the `martinez` script here https://observablehq.com/@fil/hello-martinez-polygon-clipping and it's quite fast, but seems to be lacking robustness (as evidenced by impressive bleeding in certain cases). (`GreinerHormann` is much slower and...

I've been playing with @voidqk Sean Connelly's [polybooljs](https://github.com/voidqk/polybooljs) recently. It appears to be much more [robust](https://github.com/voidqk/polybooljs/issues/22) than all the others I've tried so far (but still breaks sometimes in my...

I think it would be great to have d3.clipPolygon (and a d3.clipConvex test), and document other possibilities (such as https://github.com/voidqk/polybooljs). I was surprised by the fact that the clipPolygon(clip, subject)...

How did I miss https://github.com/mfogel/polygon-clipping ? A fast and apparently quite robust implementation of Martinez-Rueda-Feito. It is a drop-in replacement for https://github.com/w8r/martinez, and works so much better! (Contrast https://observablehq.com/@fil/hello-polygon-clipping with...

I've spent a few hours today trying to get this working, but I'm still not sure that my method is correct — and the integration is clearly not finished. Pushing...

Related : weighted quantiles @ https://github.com/d3/d3-array/issues/47

Good question! (for now it's only designed for continuous scales, and implemented in just one class of them). thinking out loud: * On a categorical scale I guess you would...