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!

Comments and Ratings (1)


Adrian (view profile)

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

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor