calculation of cogHeight for trapezoid cogwheel when given the r and the number of cogs