EquidistantCurve minor refactoring.
CalcCurveIntersetions refactoring.