The only way I can think of is to translate the points of the path into points on the coordinate plane. Then you could calculate the line of best fit. Using the slope of the line of best fit you could find the diagonality of the path if you know where the line starts (perfect diagonality would be a slope of -1 in this case).

I have not put much thought into it, this is just the first idea that popped into my head.