curve.angle: function to calculate 3 point curvature based on law of...

View source: R/curve.angle.R

curve.angleR Documentation

function to calculate 3 point curvature based on law of cosines function is intended to be used with default arguments within a Wormlab data structure

Description

function to calculate 3 point curvature based on law of cosines function is intended to be used with default arguments within a Wormlab data structure

Usage

curve.angle(del.x1, del.y1, del.x2, del.y2)

Arguments

del.x1

change from previous point (t-1) to (t0)

del.y1

change from previous point (t-1) to (t0)

del.x2

change from t(-2) to t(-1)

del.y2

change from t(-2) to t(-1)

Examples

WL.alldata %>% mutate(curve.ang = as.numeric(mapply(MF.matR::curve.angle, del.x1, del.y1, del.x2, del.y2))*180/pi))

SenguptaLab/MF.matR documentation built on Feb. 5, 2023, 4:57 p.m.