get_sides: Get sides of shape

Description Usage Arguments Value

View source: R/shape_geom.R

Description

Sides (straight lines in the shape) are sets of points where the slope doesn't change significantly

Usage

1
get_sides(shape, ma = 7, vel_n = 2)

Arguments

shape

- the shape for which to find vertices

ma

- number of moving average points used for smoothing. Must be odd.

vel_n

- number of points before and after current to use for approximating velocity vector

Value

A list of objects of class 'side', each containing the x and y coordinates of the points of the side of the shape, and also the (unit) direction vector and approximate slope angle of the line.


Blaza/ssoftveR documentation built on May 6, 2019, 11:19 a.m.