Happy Thursday! Last night I published the first major update to bezier.dart on Pub. The update introduces a new feature that was conspicuously missing from the initial launch: projection. Basically, it allows you to find the point along a curve that is closest to any other given point in 2D space. And of course, we’ve added a ton of unit tests for it. 😉

Projection has always been available in Bezier.js, the library that inspired bezier.dart, and we’ve adapted its algorithm into Dart for this feature. Thanks to @luigi-rosso for getting the work started! I hope that many others will find this update useful down the road.

I’m just about to add a section on projection to the live examples page. Check it out!