for measuring radius of curvature