A model of the human upper extremity and its application to a baseball pitching motion