1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/mesh.dsphere.R
\name{mesh.dsphere}
\alias{mesh.dsphere}
\title{Sphere distance function}
\usage{
mesh.dsphere(p, radius = 1, ...)
}
\arguments{
\item{p}{A matrix with 2 columns (3 in \code{mesh.dsphere}), each row
representing a point in the plane.}
\item{radius}{radius of sphere}
\item{...}{additional arguments (not used)}
}
\value{
A vector of length \code{nrow(p)} containing the signed
distances to the sphere
}
\description{
Signed distance from points \code{p} to boundary of sphere to
allow easy definition of regions in \code{\link{distmeshnd}}.
}
\examples{
example(distmeshnd)
}
\author{
Raoul Grasman; translated from original Matlab sources of Per-Olof
Persson.
}
\references{
\url{http://persson.berkeley.edu/distmesh/}
\cite{P.-O. Persson, G. Strang, A Simple Mesh Generator in MATLAB. SIAM
Review, Volume 46 (2), pp. 329-345, June 2004}
}
\seealso{
\code{\link{distmeshnd}}
}
\keyword{arith}
\keyword{math}
|