Given a point (x0,y0,z0) and normal vector n, a plane can be defined as follows: nx(x−x0)+ny(y−y0)+nz(z−z0)nx⋅x+ny⋅y+nz⋅z=0=nx⋅x0+ny⋅y0+nz⋅z0