def METHOD_NAME(self, point, maxdist=0.0, return_param=False):
    """Compute the closest point on a curve to a point in space.
    Parameters
    ----------
    point : point
        A point location.
    maxdist : float, optional
        The maximum distance between the point on the curve and the curve.
        Default is ``0.0``.
    return_param : bool, optional
        Return not only the point coordinates, but also the parameter of the point on the curve.
        Default is False.
    Returns
    -------
    list
        The XYZ coordinates of the closest point, if ``return_param`` is False.
        The XYZ coordinates of the closest point and the curve parameter, if ``return_param`` is True.
    """
    rc, t = self.geometry.ClosestPoint(Rhino.Geometry.Point3d(*point), maxdist)
    x, y, z = list(self.geometry.PointAt(t))
    if not return_param:
        return [x, y, z]
    return [x, y, z, t]