integrate from 0 to a P* (R*cos(theta)+h/2*sin(theta)) d theta