File Exchange

image thumbnail

Point-Plane Distance

version 1.0.0.0 (1.26 KB) by Auralius Manurung
Calculate point-plane distance (in vector).

5 Downloads

Updated 16 Mar 2017

View License

Given a plane: ax+by+cx+d = 0, a point p1 = [x1; y1; z1], and a point: p0 [x0; y0; z0]. p0 is located on the given plane and has the shortest distance to p1. Calculate a vector between p1 to p0!

Cite As

Auralius Manurung (2020). Point-Plane Distance (https://www.mathworks.com/matlabcentral/fileexchange/62096-point-plane-distance), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Adrian

The description makes it sound as if p0 was given, but p0 can be calculated from p1 and the plane using the script.

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux