I need to calculate minimum and maximum distance between two curves (normal) i.e. points from one curve have a perpendicular on another. What i have done so far: