Analyzing dance through mathematics