@spiceErrorCheck<EOL>def nplnpt(linpt, lindir, point):
linpt = stypes.toDoubleVector(linpt)<EOL>lindir = stypes.toDoubleVector(lindir)<EOL>point = stypes.toDoubleVector(point)<EOL>pnear = stypes.emptyDoubleVector(<NUM_LIT:3>)<EOL>dist = ctypes.c_double()<EOL>libspice.nplnpt_c(linpt, lindir, point, pnear, ctypes.byref(dist))<EOL>return stypes.cVectorToPython(pnear), dist.value<EOL>
Find the nearest point on a line to a specified point,
and find the distance between the two points.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/nplnpt_c.html

:param linpt: Point on a line
:type linpt: 3-Element Array of floats
:param lindir: line's direction vector
:type lindir: 3-Element Array of floats
:param point: A second point.
:type point: 3-Element Array of floats
:return:
        Nearest point on the line to point,
        Distance between point and pnear
:rtype: tuple