pyCGM_Single.pycgmStatic.findJointC

pyCGM_Single.pycgmStatic.findJointC(a, b, c, delta)

Calculate the Joint Center function.

This function is based on physical markers; a,b,c and the joint center which will be calulcated in this function are all in the same plane.

Parameters
a,b,clist

Three markers x, y, z position of a, b, c.

deltafloat

The length from marker to joint center, retrieved from subject measurement file.

Returns
mrarray

Returns the Joint C x, y, z positions in a 1x3 list.

Examples

>>> import numpy as np
>>> from .pycgmStatic import findJointC
>>> a = [775.41, 788.65, 514.41]
>>> b = [424.57, 46.17, 305.73]
>>> c = [618.98, 848.86, 133.52]
>>> delta = 42.5
>>> np.around(findJointC(a,b,c,delta), 2)
array([599.66, 843.26,  96.08])