Convex curve calculations