It should be a function of segment length, since the angles will be the same no matter what. (May require some hand written geometry to divide it into triangles and calculate from there) and then ...