pyCGM_Single.clusterCalc.getMarkerLocation

pyCGM_Single.clusterCalc.getMarkerLocation(Pm, C)

Finds the missing marker in the world frame.

Parameters
Pmarray

Location of the missing marker in the cluster frame. List or numpy array of 3 elements.

Carray

C is of the form [origin, x_dir, y_dir].

Returns
Pwarray

Location of the missing marker in the world frame. List of 3 elements.

Examples

>>> from numpy import array, around
>>> Pm = [-205.14, 258.35, 3.27]
>>> C = [array([ 325.82,  402.55, 1722.49]),
...      array([ 304.39,  242.91, 1694.97]),
...      array([ 197.86,  251.28, 1696.90])]
>>> around(getMarkerLocation(Pm, C), 2) 
array([ 187.23,  407.9 , 1720.72])