clip.infline | R Documentation |
Take the intersection between a set of infinite straight lines and a window, yielding a set of line segments.
clip.infline(L, win)
L |
Object of class |
win |
Window (object of class |
This function computes the intersection between
a set of infinite straight lines in the plane
(stored in an object L
of class "infline"
created by the
function infline
) and a window win
.
The result is a pattern of line segments. Each line segment carries a
mark indicating which line it belongs to.
A line segment pattern (object of class "psp"
)
with a single column of marks.
and \rolf.
infline
,psp
.
To divide a window into pieces using infinite lines,
use chop.tess
.
L <- infline(p=1:3, theta=pi/4)
W <- square(4)
clip.infline(L, W)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.