How to generate a list of segments from a list of random self-intercepting lines (psp in R)?
- 阅读更多 关于 How to generate a list of segments from a list of random self-intercepting lines (psp in R)?
问题 I'm using X=rpoisline(4) to generate lines and plot them with plot(X) . With X$ends I have their coordinates and their intersection points with selfcrossing.psp(X) (In R with spatstat : library(spatstat) ). I need to get a list of segments and their coordinates and be able to manipulate them (change their orientation, position, intersection...). Those segments have to be defined by the intersection of a line with an other line and with the window. So, am I missing a simple way to convert a