@spiceErrorCheck<EOL>def vdotg(v1, v2, ndim):
v1 = stypes.toDoubleVector(v1)<EOL>v2 = stypes.toDoubleVector(v2)<EOL>ndim = ctypes.c_int(ndim)<EOL>return libspice.vdotg_c(v1, v2, ndim)<EOL>
Compute the dot product of two double precision vectors of
arbitrary dimension.

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

:param v1: First vector in the dot product. 
:type v1: list[ndim]
:param v2: Second vector in the dot product. 
:type v2: list[ndim]
:param ndim: Dimension of v1 and v2. 
:type ndim: int
:return: dot product of v1 and v2.
:rtype: float