\HeaderA{volume.ellipsoid}{Compute the Volume of Planar Object}{volume.ellipsoid}
\aliasA{volume}{volume.ellipsoid}{volume}
\keyword{utilities}{volume.ellipsoid}
\begin{Description}\relax
Compute the volume of a planar object.
This is a generic function and a method for \code{ellipsoid} objects.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'ellipsoid':
volume(object)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] an \R{} object the volume of which is wanted; for the
\code{ellipsoid} method, an object of that class (see
\code{\LinkA{ellipsoidhull}{ellipsoidhull}} or the example below).
\end{ldescription}
\end{Arguments}
\begin{Value}
a number, the volume of the given \code{object}.
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{ellipsoidhull}{ellipsoidhull}} for spanning ellipsoid computation.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## example(ellipsoidhull) # which defines `ellipsoid' object <namefoo>

myEl <- structure(list(cov = rbind(c(3,1),1:2), loc = c(0,0), d2 = 10),
                   class = "ellipsoid")
volume(myEl)# i.e. "area" here (d = 2)
myEl # also mentions the "volume"
\end{ExampleCode}
\end{Examples}

