The distance from a point to a plane
The ship hovers at A(1, 2, 3), near the sail in the plane 2 x minus y plus 2 z plus 3 equals 0 from Planes and normal vectors. How far is it from the sail? The distance to a plane means the shortest way there, straight along the normal vector.
The formula
Put the point into the left side of the plane's equation, take its size, and divide by the length of the normal vector. For a point (x₀, y₀, z₀) and the plane ax + by + cz + d = 0, the distance is
|ax₀ + by₀ + cz₀ + d| / the square root of (a² + b² + c²)
For the ship:
On top, 2 times 1 minus 2 plus 2 times 3 plus 3 is 9. Below, the square root of the quantity 4 plus 1 plus 4 is 3. So the ship is 3 from the sail.
Why it works
Putting a point into the left side gives 0 for points in the plane, and something else for points off it. Moving along the normal vector changes it fastest: every step of length 1 along the vector 2, minus 1, 2 changes it by the normal vector's length, 3. The ship's point gives 9, so it is 9 divided by 3 away from the plane, which is 3.
The bars take away the sign, which only tells which side of the plane the point is on.
Put the point into the plane's equation, take the size, and divide by the length of the normal vector.