Direct Kinematics, Inverse Kinematics, and Motion Planning of 1-DoF Rational Linkages