Add a new point to the end of the vertex sequence.
The vertex (point) to add.
Generate a sequence of cubic Bézier curves from the point set.
Specify if the path should be closed.
(default=0) An optional tension parameter.
Array
Generated using TypeDoc
Compute the Catmull-Rom spline path from a sequence of points (vertices).
For comparison to the HobbyCurve I wanted to add a Catmull-Rom path (to show that the HobbyCurve is smoother).
This demo implementation was inspired by this Codepen by Blake Bowen https://codepen.io/osublake/pen/BowJed
CubicBezierCurve
Vertex