pyCGM_Single.Pipelines.getStaticTransform

pyCGM_Single.Pipelines.getStaticTransform(p, C)

Find the location of the missing marker in the cluster frame.

Parameters
parray

Location of the target marker. List or numpy array of 3 elements.

Carray

C is of the form [origin, x_dir, y_dir]. Each of the elements in C is a numpy array of 3 elements.

Returns
Pmarray

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

Examples

>>> from numpy import array, around
>>> p = [173.67, 325.44, 1728.47]
>>> C = [array([314.17, 326.98, 1731.38]),
...      array([302.76, 168.80, 1688.15]),
...      array([193.62, 171.28, 1689.54])]
>>> around(getStaticTransform(p, C), 2) 
array([-205.16,  258.37,    3.28])