Analysis of cam and follower motion