Description Usage Arguments Value
Sides (straight lines in the shape) are sets of points where the slope doesn't change significantly
1 | get_sides(shape, ma = 7, vel_n = 2)
|
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.