Learn R Programming

henna (version 0.3.4)

borderCoords: Find the coordinates where a vertical or horizontal line intersects the hull

Description

This function finds the coordinates where a vertical or horizontal line intersects the hull.

Usage

borderCoords(df, axis, axisIntersect)

Value

A vector of size two representing the coordinates of the two intersection points between the vertical or horizontal line and the convex hull on the axis different from the input axis.

Arguments

df

A four-column data frame representing segments.

axis

An integer representing the axis intersected by the vertical or horizontal line, x (1) or y (2).

axisIntersect

The coordinate where the vertical or horizontal line intersects the relevant axis.