Piecewise construction
The follower's cycle is split into angular segments: dwells, where displacement stays constant, and rises or falls, where displacement follows the chosen law as a function of the cam angle within the segment. The tool evaluates these closed-form functions across the full rotation and plots them against cam angle. Velocity is the displacement curve's first derivative scaled by cam speed; acceleration is the second derivative scaled by cam speed squared.