REVERSELINE3D Return same 3D line but with opposite orientation. INVLINE = reverseLine(LINE); Returns the opposite line of LINE. LINE has the format [x0 y0 z0 dx dy dz], then INVLINE will have following parameters: [x0 y0 z0 -dx -dy -dz]. See also: reverseLine, reversePlane ------ Author: David Legland e-mail: david.legland@grignon.inra.fr Created: 2012-05-24, using Matlab 7.9.0.529 (R2009b) Copyright 2012 INRA - Cepia Software Platform.
0001 function line = reverseLine3d(line) 0002 %REVERSELINE3D Return same 3D line but with opposite orientation. 0003 % 0004 % INVLINE = reverseLine(LINE); 0005 % Returns the opposite line of LINE. 0006 % LINE has the format [x0 y0 z0 dx dy dz], then INVLINE will have 0007 % following parameters: [x0 y0 z0 -dx -dy -dz]. 0008 % 0009 % See also: 0010 % reverseLine, reversePlane 0011 % 0012 % 0013 % ------ 0014 % Author: David Legland 0015 % e-mail: david.legland@grignon.inra.fr 0016 % Created: 2012-05-24, using Matlab 7.9.0.529 (R2009b) 0017 % Copyright 2012 INRA - Cepia Software Platform. 0018 0019 line(:, 4:6) = -line(:, 4:6); 0020