REVERSEPLANE Return same 3D plane but with opposite orientation. IP = reversePlane(PLANE); Returns a plane contining the same ppints but with normal opposite to that of PLANE. If PLANE has the format [x0 y0 z0 dx1 dy1 dz1 dx2 dy2 dz2], then IP will have following parameters: [x0 y0 z0 dx1 dy1 dz1 -dx2 -dy2 -dz2]. See also: createPlane, reverseLine3d
0001 function plane = reversePlane(plane) 0002 %REVERSEPLANE Return same 3D plane but with opposite orientation. 0003 % 0004 % IP = reversePlane(PLANE); 0005 % Returns a plane contining the same ppints but with normal opposite to 0006 % that of PLANE. 0007 % If PLANE has the format [x0 y0 z0 dx1 dy1 dz1 dx2 dy2 dz2], then IP 0008 % will have following parameters: [x0 y0 z0 dx1 dy1 dz1 -dx2 -dy2 -dz2]. 0009 % 0010 % See also: 0011 % createPlane, reverseLine3d 0012 % 0013 0014 % ------ 0015 % Author: David Legland 0016 % e-mail: david.legland@inra.fr 0017 % Created: 2012-05-24, using Matlab 7.9.0.529 (R2009b) 0018 % Copyright 2012 INRA - Cepia Software Platform. 0019 0020 plane(:, 7:9) = -plane(:, 7:9); 0021