plane intersection
by Nassim Khaled
20 Nov 2007
(Updated 02 Apr 2011)
It computes the intersection of two planes in space.
|
Watch this File
|
| File Information |
| Description |
% Inputs:
% N1: normal vector to Plane 1
% A1: any point that belongs to Plane 1
% N2: normal vector to Plane 2
% A2: any point that belongs to Plane 2
%Outputs:
% P is a point that lies on the interection straight line.
% N is the direction vector of the straight line
% check is an integer (0:Plane 1 and Plane 2 are parallel'
% 1:Plane 1 and Plane 2 coincide
% 2:Plane 1 and Plane 2 intersect)
% Example:
% Determine the intersection of these two planes:
% 2x - 5y + 3z = 12 and 3x + 4y - 3z = 6
% The first plane is represented by the normal vector N1=[2 -5 3]
% and any arbitrary point that lies on the plane, ex: A1=[0 0 4]
% The second plane is represented by the normal vector N2=[3 4 -3]
% and any arbitrary point that lies on the plane, ex: A2=[0 0 -2]
% [P,N,check]=plane_intersect([2 -5 3],[0 0 4],[3 4 -3],[0 0 -2]); |
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 21 Nov 2007 |
Jos x@y.z
|
|
|
| 22 Nov 2007 |
Thomas Pieper
|
|
|
| 28 Nov 2007 |
Nasser Farhat
|
|
|
| 17 Feb 2011 |
phil
|
|
|
| Updates |
| 26 Nov 2007 |
Some useful comments from the file exchange community. |
| 02 Apr 2011 |
I have read some new commments and responded by changing the code. |
|
Contact us at files@mathworks.com