Last chance! 50% off unlimited learning
Sale ends in
crossing.psp(A,B)
"psp"
)."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.
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