@spiceErrorCheck<EOL>def npelpt(point, ellips):
assert (isinstance(ellips, stypes.Ellipse))<EOL>point = stypes.toDoubleVector(point)<EOL>pnear = stypes.emptyDoubleVector(<NUM_LIT:3>)<EOL>dist = ctypes.c_double()<EOL>libspice.npelpt_c(point, ctypes.byref(ellips), pnear, ctypes.byref(dist))<EOL>return stypes.cVectorToPython(pnear), dist.value<EOL>
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