% Change sign of 2D point if it is negative pp = sugr_positive_Point2D(p) Wolfgang Förstner 1/2011 wfoerstn@uni-bonn.de See also sugr_Point_2D
0001 %% Change sign of 2D point if it is negative 0002 % 0003 % pp = sugr_positive_Point2D(p) 0004 % 0005 % Wolfgang Förstner 1/2011 0006 % wfoerstn@uni-bonn.de 0007 % 0008 % See also sugr_Point_2D 0009 0010 function pp = sugr_positive_Point_2D(p) 0011 0012 pp = p; 0013 if sugr_get_isfinite_Point_2D(p) 0014 pp.h = p.h*sign(p.h(3)); 0015 end 0016 0017