has_cross_point | R Documentation |
Check if two segments has thier cross point or not.
has_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 |
logical value: TRUE when segment1 and segment2 has a cross point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.