ts-useful

Functions for animation, color transitions, ecliptic, bezier, decasteljau, curves, three dimensional curves, smooth scrolling, random range, randomItem, mobius index, vectors, physics vectors, and easing.

linear-least-squares

Finds the best curve to fit a set of points through minimizing the sum of the squares of the offset of each point from the curve.