spline library

Splines are most commonly used to draw a curve line when a set of given points exists, which needs to be joined smoothly.

More about the algorithm and here.

Java way: A Catmull Rom Spline (curve) Implementation in Java