Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
The dot indicates the dot product (or scalar product).
Vector points from the origin of the coordinate system, O, to any point P that lies precisely in plane or on line E. The vector represents the unitnormal vector of plane or line E. The distance is the shortest distance from the origin O to the plane or line.
Derivation/Calculation from the normal form
Note: For simplicity, the following derivation discusses the 3D case. However, it is also applicable in 2D.
In the normal form,
a plane is given by a normal vector as well as an arbitrary position vector of a point . The direction of is chosen to satisfy the following inequality
By dividing the normal vector by its magnitude , we obtain the unit (or normalized) normal vector
and the above equation can be rewritten as
Substituting
we obtain the Hesse normal form
In this diagram, d is the distance from the origin. Because holds for every point in the plane, it is also true at point Q (the point where the vector from the origin meets the plane E), with , per the definition of the Scalar product
The magnitude of is the shortest distance from the origin to the plane.
Distance to a line
The Quadrance (distance squared) from a line to a point is