S-Curve Equations for a Trajectory Generator