A line is parallel to a plane if and only if the dot product of the direction vector of the line with the normal vector of the plane is zero. In other words, a line is parallel to a plane iff the direction of the line is perpendicular to the normal of the plane.