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 line = reverseLine3d(line)
%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:
% Created: 2012-05-24,    using Matlab (R2009b)
% Copyright 2012 INRA - Cepia Software Platform.

line(:, 4:6) = -line(:, 4:6);

Contact us