Skip to contents

Returns x and y midpoint using vectorized curved offset

Usage

computeCurvedMidpoint(x0, y0, x1, y1, curvature, angle, shift = 0, t = 0.5)

Arguments

x0

Numeric vector of x coordinates for start points

y0

Numeric vector of y coordinates for start points

x1

Numeric vector of x coordinates for end points

y1

Numeric vector of y coordinates for end points

curvature

Scalar curvature (geom_curve style)

angle

Scalar angle in degrees

shift

Scalar shift in degrees (default is 0)

t

Scalar value between 0 and 1 for interpolation (default is 0.5) setting the midpoint

Value

Numeric vector of midpoints (x or y) @keywords internal