I have the following code to calculate points between four control points to generate a catmull-rom curve: CGPoint interpolatedPosition(CGPoint …