pyCGM_Single.pyCGM.norm3d

pyCGM_Single.pyCGM.norm3d(v)

3D Vector normalization.

This function calculates the normalization of a 3-dimensional vector.

Parameters
vlist

A 3D vector.

Returns
list

The normalization of the vector returned as a float in an array.

Examples

>>> from .pyCGM import norm3d
>>> v = [125.44, 143.94, 213.49]
>>> np.around(norm3d(v), 2)
286.41