rotateWidthAccAngle: Rotates a width to match a vector

Description Usage Arguments Value

Description

This function is provided with an angle and a width. It then creates a vector that uses the angle and the origo points to generate a width vector used in getLines, getLinesWithArrow

Usage

1
2
rotateWidthAccAngle(angle, x_origo = NA, y_origo = NA, width = 0,
  default.units, perpendicular = TRUE, prev_angle = NA)

Arguments

angle

Angle to rotate according to

x_origo

The x origin if other than 0

y_origo

The y origin if other than 0

width

The width of the desired left & right vectors

default.units

As defined by the grid package

perpendicular

If the width is perpendicular to the provided vector the set this to true

prev_angle

If you want an average from this and the previous angle then set this parameter to the previous angle

Value

list A list with left & right vectors of c(x, y) format and a angle element


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