[Math] Calculate distance from plane to parallel plane in O using vector and normal

3dinner-productsvector-spaces

I'm trying to figure out what's the best method to get the distance between two planes where i have the normalized vector of the plane and a point in the plane. What I want to do is to create a parallel plane where 0,0,0 is in and then calculate the distance between the two planes.
My thought was that it's actually the same like the distance between the plane and 0,0,0 which I tried just to calculate as the dot product between the normalized vector and the given point.

e.g.: (The values are that strange because they are from a 3D camera system)

{ 0.00102464424908972; -1.5806471007608384E-4; -0.0014898099362794807} // normalized vector (plane normal)
{ 1.2168973210867913; -0.2862541104934054; -0.39146720489920095} //given point
0.0018753452463538794  //calculated distance  ?

I'm not sure but this looks not like the result I expected. Is it the right formula? I tried to use the Hessesche Normalform

Update: somehow I droped my normalize function and the normal was not normalized. now my results look much better. Thankf for all answers.

Best Answer

Computing the dot product between the plane normal and the position vector of the given point strikes me as the right solution.

If you imagine the plane and the position vector $x$ from the origin to the given point of the plane, you can drop an orthogonal projection of the origin onto the plane to form a triangle (with the given point and the origin.) The length of the side perpendicular to the plane (=parallel to the plane normal $n$) is exactly $|(x\cdot n)|$.