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