Home > matGeom > geom3d > reverseLine3d.m

reverseLine3d

PURPOSE ^

REVERSELINE3D Return same 3D line but with opposite orientation.

SYNOPSIS ^

function line = reverseLine3d(line)

DESCRIPTION ^

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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 16-Feb-2022 15:10:47 by m2html © 2003-2019