r is the radius of the curve