How to get distance from point to plane in 3d?
问题 I have a triangle with points A, B, C and Point in space (P). How can I get distance from point to plane? I need to calc distance from P to plane, even when my triangle lie far away(or not above to the point, like on picture). Point and triangle: 回答1: If the point is P(x1,y1,z1) and the plane is ax+by+cz+d = 0 Distance dist = Abs(a*x1+b*y1+c*z1+d) / Sqrt(a^2+b^2+c^2) 回答2: I assume you want to compute perpendicular distance between point and plane given 3 points on it forming a triangle. Here