crossing.psp(A,B,fatal=TRUE)
"psp"
).A
and B
do not overlap.
See Details."ppp"
).A
and B
. A crossing point occurs whenever one of the line segments in A
intersects one of the line segments in B
, at a nonzero
angle of intersection.
If the windows Window(A)
and Window(B)
do not
overlap, then an error will be reported if fatal=TRUE
,
while if fatal=FALSE
an error will not occur
and the result will be NULL
.
selfcrossing.psp
,
psp.object
,
ppp.object
.a <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
b <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
plot(a, col="green", main="crossing.psp")
plot(b, add=TRUE, col="blue")
P <- crossing.psp(a,b)
plot(P, add=TRUE, col="red")
Run the code above in your browser using DataLab