get_cross_point | R Documentation |
Check if two segments has thier cross point or not.
get_cross_point(
seg1.a_x,
seg1.a_y,
seg1.b_x,
seg1.b_y,
seg2.a_x,
seg2.a_y,
seg2.b_x,
seg2.b_y
)
seg1.a_x |
x value of point A on segment 1 |
seg1.a_y |
y value of point A on segment 1 |
seg1.b_x |
x value of point B on segment 1 |
seg1.b_y |
y value of point B on segment 1 |
seg2.a_x |
x value of point A on segment 2 |
seg2.a_y |
y value of point A on segment 2 |
seg2.b_x |
x value of point B on segment 2 |
seg2.b_y |
y value of point B on segment 2 |
vector whose first and second elements are x and y.
This function return incorrect values when given segments has no cross point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.