def define_plane(p, t):
    """Calculates the offset (d) parameter of a plane given a point
    on the directrix (p) and the tangent vector (t)"""
    return -1.0 * ((t[0] * p[0]) + (t[1] * p[1]) + (t[2] * p[2]))