Rikkert Koppes

Results 21 comments of Rikkert Koppes

The problem is still there. @tooxoot seems to have a solution in the reference above. The way I solved it without replacing the d.ts file is by importing the type...

FWIW, I just implemented this using an iterative approximation: public getPointAtDistance(offset: number, ϵ: number = 1) { let l = this.length(); if (offset < 0) return this.get(0); if (offset >...

This version works with offset on the range [0, length], rather than [0,1], which seemed more natural to me. Hence the first guess (for t) is `offset / length` The...

I have started getting esp-mdf to work here: https://github.com/nlcamarillo/platform-espressif32/commits/espmdf This is all quite new to me, so half of the time I don't know what I am doing. I managed...

Also added an option to redefine the property that is used as `selected`. this defaults to `$selected` as before. ``` html ``` Looking at the code, this has been the...

How about exposing a function via a hook. Any advanced scenario can then be implemented by the user. For example, by using use-gesture https://use-gesture.netlify.app/ Edit: The above was a bit...

Was this resolved? I believe I have a similar (if not the same) problem: ![image](https://user-images.githubusercontent.com/302821/80616901-bb69c580-8a41-11ea-8976-2c676a3ba11c.png) Looking for intersections of the red path to the small circles. The red path is...

Fwiw, the problem is here: https://github.com/thelonious/kld-intersections/blob/development/lib/Intersection.js#L83-L110 here is my fix: ```javascript function restrictPointsToArc(intersections, center, radiusX, radiusY, startRadians, endRadians) { if (intersections.points.length === 0) { return intersections; } const result =...

The above fix does seem to work, math seems right to me too. I'll see if I can find some time to add tests and commit a pr

This was my reasoning: - ASSUMPTION: startRadians and endRadians given are between -TWO_PI and TWO_PI - ASSUMPTION: endRadians < startRadians for ccw arcs - ASSUMPTION: the area of interest is...