Hacker News new | ask | show | jobs
by purplecats 196 days ago
this is really cool! can you make it interpolate and smoothly animate based on velocity and trajectory?
1 comments

Could, yes.

I’ve tried it in 2d to pretty good success. It’s a bit low on my list of items to add, partially because I have a hunch that calculating and projecting thousands of vectors is going to cost more compute than simply accepting coordinates and drawing lines.

Modern CPUs do billions of floating point operations per second. Calculating and projecting thousands of vectors is pocket change. On a GPU it’s even more laughably small.