getLines: Gets the lines shifted according to width

Description Usage Arguments Value

View source: R/bezier_private_functions.R

Description

The lines are the upper and the lower lines that will make up the future polygon that will be used to generate the arrow. These lines are separated from the points by a defined width. The width is perpendicular to the lines angle at that particular point.

Usage

1
getLines(bp, end_point, width, default.units, align_2_axis = TRUE)

Arguments

bp

Bezier points that define the line. Based upon a bezier grob.

end_point

A list with x & y for the end, only used for the last element's angle.

width

The width as a grid length unit

default.units

The default unit (see the grid package for available units)

align_2_axis

This indicates if the arrows origin should align it to an axis. Which is decided by which axis is the closes one.

Value

A list with left and right elements indicating the two lines


raredd/Gmisc0 documentation built on May 27, 2019, 2:02 a.m.