
Last chance! 50% off unlimited learning
Sale ends in
intersect.tess(X, Y, ...)
"tess"
),
or windows (objects of class "tess"
),
or other data that can be converted to
tessellations by as.tess
.as.mask
to control the discretisation, if required."tess"
).tess
. If X
and Y
are not tessellations, they are first
converted into tessellations by as.tess
.
The function intersect.tess
then computes the intersection between
the two tessellations. This is another tessellation, each of whose
tiles is the intersection of a tile from X
and a tile from Y
.
One possible use of this function is to slice a window W
into
subwindows determined by a tessellation. See the Examples.
tess
,
as.tess
,
intersect.owin
opa <- par(mfrow=c(1,3))
# polygon
data(letterR)
plot(letterR)
# tessellation of rectangles
X <- tess(xgrid=seq(2, 4, length=10), ygrid=seq(0, 3.5, length=8))
plot(X)
plot(intersect.tess(X, letterR))
A <- runifpoint(10)
B <- runifpoint(10)
plot(DA <- dirichlet(A))
plot(DB <- dirichlet(B))
plot(intersect.tess(DA, DB))
par(opa)
Run the code above in your browser using DataLab