An unreasonable (given the precision we care about) small value of h in a helix, causes the eccentricity in closest_t (1/h^2) to blow to infinity. This creates a NaN value for the closest t.
Probably the best solution would be to deal with these (what threshold) values of h together with h == 0.
An unreasonable (given the precision we care about) small value of
h
in a helix, causes the eccentricity inclosest_t
(1/h^2) to blow to infinity. This creates aNaN
value for the closestt
.Probably the best solution would be to deal with these (what threshold) values of
h
together withh == 0
.