\HeaderA{aRTlayer-getNN}{Get Nearest Neighbors}{aRTlayer.Rdash.getNN}
\aliasA{getNN}{aRTlayer-getNN}{getNN}
\aliasA{getNN,aRTlayer-method}{aRTlayer-getNN}{getNN,aRTlayer.Rdash.method}
\keyword{connection}{aRTlayer-getNN}
\begin{Description}\relax
Function that return the nearest neighbors of an object, using
the distance.
\end{Description}
\begin{Usage}
\begin{verbatim}
this-is-escaped-code{{aRTlayer}(object, id, quantity=2)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] Object of class \code{aRTlayer}.
\item[\code{id}] The spatial object id.
\item[\code{quantity}] The number of neighbors to be returned. Default is 1.
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Pedro Ribeiro de Andrade Neto
\end{Author}
\begin{SeeAlso}\relax
See \code{aRTlayer-class} to the description of this class.
\end{SeeAlso}

