Revision 9ed6d6be90c4a866357a121a3f106a0bea1cdb99 authored by Adrian Baddeley on 22 July 2008, 00:00:00 UTC, committed by Gabor Csardi on 22 July 2008, 00:00:00 UTC
1 parent f919f46
affine.owin.Rd
\name{affine.owin}
\alias{affine.owin}
\title{Apply Affine Transformation To Window}
\description{
Applies any affine transformation of the plane (linear transformation
plus vector shift) to a window.
}
\usage{
\method{affine}{owin}(X, mat=diag(c(1,1)), vec=c(0,0), \dots)
}
\arguments{
\item{X}{Window (object of class \code{"owin"}).}
\item{mat}{Matrix representing a linear transformation.}
\item{vec}{Vector of length 2 representing a translation.}
\item{\dots}{Ignored}
}
\value{
Another window (of class \code{"owin"}) representing the
result of applying the affine transformation.
}
\details{
The window is subjected first to the linear transformation represented by
\code{mat} (multiplying on the left by \code{mat}),
and then the result is translated by the vector \code{vec}.
The argument \code{mat} must be a nonsingular \eqn{2 \times 2}{2 * 2}
matrix.
This is a method for the generic function \code{\link{affine}}.
}
\seealso{
\code{\link{affine}},
\code{\link{affine.ppp}},
\code{\link{rotate}},
\code{\link{shift}}
}
\examples{
# shear transformation
X <- affine(owin(), matrix(c(1,0,0.6,1),ncol=2))
\dontrun{
plot(X)
}
}
\author{Adrian Baddeley
\email{adrian@maths.uwa.edu.au}
\url{http://www.maths.uwa.edu.au/~adrian/}
and Rolf Turner
\email{r.turner@auckland.ac.nz}
}
\keyword{spatial}
\keyword{math}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...