pyCGM_Single.pycgmStatic.norm3d

pyCGM_Single.pycgmStatic.norm3d(v)

3D Vector normalization function

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

Parameters
vlist

A 3-element list.

Returns
array

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

Examples

>>> import numpy as np
>>> from .pycgmStatic import norm3d
>>> v = [124.98, 368.64, 18.43]
>>> np.array(norm3d(v).round(2))
array(389.69)