Learn R Programming

ggrepel (version 0.4)

intersect_line_rectangle: Find the intersections between a line and a rectangle.

Description

Find the intersections between a line and a rectangle.

Usage

intersect_line_rectangle(p1, p2, b)

Arguments

p1
A point like c(x, y)
p2
A point like c(x, y)
b
A rectangle like c(x1, y1, x2, y2)