code: public double distanceToPlane(Point3d p) {
          return normal.x * p.x + normal.y * p.y + normal.z * p.z - planeOffset;
      }
docs: Computes the distance from a point p to the plane of this face.
  
  @param p
  the point
  @return distance from the point to the plane