Check if a point crosses a line segment
1 | pt_line_inter(pt_to_test, fixed_pts)
|
pt_to_test |
numeric vector of length two giving the point to test |
fixed_pts |
matrix of dimension 2 by 2 giving the line segment to test |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.