PARALLELLINE3D Create 3D line parallel to another one. L2 = parallelLine3d(L, P) Creates the 3D line L2, parallel to the line L, and containing the point P. Example See also geom3d, parallelLine, parallelPlane ------ Author: David Legland e-mail: david.legland@grignon.inra.fr Created: 2012-08-23, using Matlab 7.9.0.529 (R2009b) Copyright 2012 INRA - Cepia Software Platform.
0001 function res = parallelLine3d(line, point) 0002 %PARALLELLINE3D Create 3D line parallel to another one. 0003 % 0004 % L2 = parallelLine3d(L, P) 0005 % Creates the 3D line L2, parallel to the line L, and containing the 0006 % point P. 0007 % 0008 % Example 0009 % 0010 % See also 0011 % geom3d, parallelLine, parallelPlane 0012 % 0013 % ------ 0014 % Author: David Legland 0015 % e-mail: david.legland@grignon.inra.fr 0016 % Created: 2012-08-23, using Matlab 7.9.0.529 (R2009b) 0017 % Copyright 2012 INRA - Cepia Software Platform. 0018 0019 res = [point line(:, 4:6)];