Code covered by the BSD License  

Highlights from

image thumbnail



David Legland (view profile)


19 Jun 2009 (Updated )

Library to handle 3D geometric primitives: create, intersect, display, and make basic computations

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

function plane = reversePlane(plane)
%REVERSEPLANE Return same 3D plane but with opposite orientation
%   IP = reversePlane(PLANE);
%   Returns the plane opposite to PLANE.
%   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:
%   reverseLine3d
% ------
% Author: David Legland
% e-mail:
% Created: 2012-05-24,    using Matlab (R2009b)
% Copyright 2012 INRA - Cepia Software Platform.

plane(:, 4:9) = -plane(:, 4:9);

Contact us