code: def npelpt(point, ellips):
      
      assert (isinstance(ellips, stypes.Ellipse))
      point = stypes.toDoubleVector(point)
      pnear = stypes.emptyDoubleVector(3)
      dist = ctypes.c_double()
      libspice.npelpt_c(point, ctypes.byref(ellips), pnear, ctypes.byref(dist))
      return stypes.cVectorToPython(pnear), dist.value
docs: Find the nearest point on an ellipse to a specified point, both
      in three-dimensional space, and find the distance between the
      ellipse and the point.
      http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/npelpt_c.html
  
      :param point: Point whose distance to an ellipse is to be found.
      :type point: 3-Element Array of floats
      :param ellips: An ellipse.
      :type ellips: spiceypy.utils.support_types.Ellipse
      :return: Nearest point on ellipsoid to line, Distance of ellipsoid from line
      :rtype: tuple