A lattice direction lies parallel to a plane exactly when . Indeed, their direct and reciprocal lattice vectors have dot product proportional to this expression. This statement holds for noncubic cells as well; angles between directions still require the direct-lattice metric tensor.
New to topics? Read the docs here!