% Test whether 2D line is finite f = sugr_get_isfinite_Line_2D(l) * l = 2D line struct {l.h,l.Crr} * f = boolean, true if l is finite, false otherwise Wolfgang Förstner 1/2011 wfoerstn@uni-bonn.de See also sugr_Line_2D
0001 %% Test whether 2D line is finite 0002 % 0003 % f = sugr_get_isfinite_Line_2D(l) 0004 % 0005 % * l = 2D line struct {l.h,l.Crr} 0006 % * f = boolean, true if l is finite, false otherwise 0007 % 0008 % Wolfgang Förstner 1/2011 0009 % wfoerstn@uni-bonn.de 0010 % 0011 % See also sugr_Line_2D 0012 0013 function f = sugr_get_isfinite_Line_2D(l) 0014 0015 global Threshold_Euclidean_Normalization 0016 0017 f = norm(l.h(1:2)) > ... 0018 Threshold_Euclidean_Normalization * abs(l.h(3)); 0019