File Exchange

image thumbnail

Point-Plane Distance

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


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 (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)


Hi, wondering if the code can calculate a datasets of 3D points(X,Y,Z) with a planemodel(ax+by+cx+d = 0) with an forloop.


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