Code covered by the BSD License  

Highlights from
Intersection point of lines in 3D space

5.0

5.0 | 1 rating Rate this file 40 Downloads (last 30 days) File Size: 1.58 KB File ID: #37192

Intersection point of lines in 3D space

by

 

Finding intersection point of lines in 3D space (two or more lines).

| Watch this File

File Information
Description

Finding intersection point of lines in 3D space (two or more lines).
Will return point with the minimum sum of squared distances from point to lines (LSM-method, using pseudoinverse).

% PA : Nx3-matrix containing starting point of N lines
% PB : Nx3-matrix containing end point of N lines
% P_Intersect : Best intersection point of the N lines, in least squares sense.
% distances : Distances from intersection point to the input lines
% Anders Eikenes, 2012

MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
25 Sep 2012 Alan Jennings

Works great. Thanks for adding it up.

Contact us