Title

XYZ_Vers_Agl(vecX, vecY, vecZ)

Arguments

vecX

X coordinates (m)

vecY

Y coordinates (m)

vecZ

Z coordinates (m)

Value

A list:

  • dist_P2P1: Length of the segment;

  • vAngle_XY: Angle between the segment and the XY plane (radian);

  • vAngle_XZ: Angle between the segment and the XZ plane (radian)

Examples

filepath = system.file("extdata/6_EW01.22_17_kanan.txt", package = "biomech") df = unbend(read_mat(filepath)) XYZ_Vers_Agl(df$x,df$y,df$z)
#> $dist_P2P1 #> [1] 0.001 1.340 1.340 0.770 0.770 #> #> $vAngle_XY #> [1] 0.8517207 0.8517207 0.8517207 0.8517207 0.8517207 #> #> $vAngle_XZ #> [1] 0 0 0 0 0 #>