Remove torsion and bending of a bent beam, i.e. transform it into a straight line, while keeping its insertion angle (inclination angle of the first segment).

unbend(df)

Arguments

df

Experimental data (usually read using read_mat(), see details)

Value

The input data.frame() with modified (or enriched with):

  • x: x coordinate

  • y: y coordinate

  • z: z coordinate

Details

df should be a formatted data.frame(), with each row being a point and each columns being:

  • distance (m): distance between the previous point and this point (first value should be positive)

  • inclination (degree): insertion angle of the first point (only first value is used)

Note

Mainly used to compute the matrix for input to bend() from experimental points.

Examples

if (FALSE) { filepath = system.file("extdata/6_EW01.22_17_kanan.txt", package = "biomech") df = read_mat(filepath) unbend(df = df) }