Planes in 3D

General plane equation

Ax+By+Cz=D

Normal to a plane

n→=Ai→+Bj→+Ck→

Plane by normal and point

Given n→ - normal and point p→ on the plane Ax+By+Cz=D
?if I got it right?

n1(x−p1)+n2(y−p2)+n3(z−p3)=0

Point distance to plane

Given a point p→ on the plane Ax+By+Cz=D
the distance d from the point to the plane will be:

d=Ap1+Bp2+Cp3−DA2+B2+C2