pyCGM_Single.pycgmStatic.cross

pyCGM_Single.pycgmStatic.cross(a, b)

Cross Product function

Given vectors a and b, calculate the cross product.

Parameters
alist

First 3D vector.

blist

Second 3D vector.

Returns
clist

The cross product of vector a and vector b.

Examples

>>> from .pycgmStatic import cross
>>> a = [12.83, 61.25, 99.6]
>>> b = [14.8, 61.72, 95.44]
>>> np.around(cross(a, b), 2)
array([-301.61,  249.58, -114.63])