What is the best way to find curvature between two arbitrary points; I need to calculate that to set a threshold for a recursive subdivision.