pyCGM_Single.pyCGM.cross

pyCGM_Single.pyCGM.cross(a, b)

Cross Product.

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

>>> import numpy as np
>>> from .pyCGM import cross
>>> a = [6.25, 7.91, 18.63]
>>> b = [3.49, 4.42, 19.23]
>>> np.around(cross(a, b), 2)
array([ 6.976e+01, -5.517e+01,  2.000e-02])