
Distance from point to plane
Pretty straightforward question I guess; How do I find the distance from a point in 3D space to a plane?
I have another algorithm that finds the distance from the origin of the plane, but I''d also like to be able to find the distance to a plane (3 verticies) anywhere in 3D space.
Thanks

//att
You need to find the normal of the plane, a vector that points perpendicular to the plane. Then normalize it, and then subtact any point on the plane for the point. Finally take the absolute value of the dot product between the planes normal and your new point. So:
P - the point
S - any point on the plane
N - the normal of the plane
d - distance
d = |(P-S).N|
tj963
P - the point
S - any point on the plane
N - the normal of the plane
d - distance
d = |(P-S).N|
tj963
tj963
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement