Method for analyzing the motion of a person during an activity