vector_plane_inters​ect

버전 1.0.0.0 (1.75 KB) 작성자: Val Schmidt
A function to fine the point where a line intersects a plane.
다운로드 수: 348
업데이트 날짜: 2012/4/24

라이선스 보기

Given 1) a line parameterized by a point in 3D space along with a 3x1 vector indicating the line's direction, and 2) the coefficients (a b c) of a plane (z = a*x + b*y + c), vector_plane_intersect calculates the point on the plane at which the line will intersect it.

Inf is returned when the line is parallel to the plane.

From the code...

%%
% A line in 3 D space is parameterized by
%
% x = xo + n*t;
% y = yo + n*t;
% z = zo + n*t;
%
% A plane in 3D space is parameterized by
%
% z = C(1)*x+C(2)*y+C(3)
%
% To find the point where the line intersects the plane we substitute the
% equations for x, y and z into the plane equation above and solve for t.
% Then evaluate the x, y and z equations at that point.

인용 양식

Val Schmidt (2024). vector_plane_intersect (https://www.mathworks.com/matlabcentral/fileexchange/36357-vector_plane_intersect), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Volume Visualization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0