has_cross_point: Check if the segment seg1 is cross with seg2

View source: R/geometry.R

has_cross_pointR Documentation

Check if the segment seg1 is cross with seg2

Description

Check if two segments has thier cross point or not.

Usage

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
)

Arguments

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

Value

logical value: TRUE when segment1 and segment2 has a cross point.


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.