pyCGM_Single.pycgmStatic.headoffCalc

pyCGM_Single.pycgmStatic.headoffCalc(axisP, axisD)

Head Offset Calculation function

Calculate head offset angle for static calibration. This function is only called in static trial. and output will be used in dynamic later.

Parameters
axisPlist

Shows the unit vector of axisP, the position of the proximal axis.

axisDlist

Shows the unit vector of axisD, the position of the distal axis.

Returns
anglefloat

The beta angle of the head offset.

Examples

>>> import numpy as np
>>> from .pycgmStatic import headoffCalc
>>> axisP = [[0.96, 0.81, 0.82],
...         [0.24, 0.72, 0.38],
...         [0.98, 0.21, 0.68]]
>>> axisD = [[0.21, 0.25, 0.94],
...         [0.8, 0.45, 0.91],
...         [0.17, 0.67, 0.85]]
>>> np.around(headoffCalc(axisP,axisD), 2)
0.95