def distance_to_plane(self, plane): """Compute the distance to a plane. Parameters ---------- plane : plane The plane. Returns ------- float The distance. """ return distance_point_plane(self, plane)
def is_point_on_plane(point, plane, tol=0.0): """Determine if a point lies in a plane. Parameters ---------- point : sequence of float XYZ coordinates. plane : tuple Base point and normal defining a plane. tol : float, optional A tolerance. Default is ``0.0``. Returns ------- bool ``True`` if the point is in on the plane. ``False`` otherwise. """ return distance_point_plane(point, plane) <= tol