Home > General-Functions > SUGR > Point_2D > sugr_positive_Point_2D.m

sugr_positive_Point_2D

PURPOSE ^

% Change sign of 2D point if it is negative

SYNOPSIS ^

function pp = sugr_positive_Point_2D(p)

DESCRIPTION ^

% 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Sat 21-Jul-2018 20:56:10 by m2html © 2005