pyCGM_Single.pyCGM.norm2d

pyCGM_Single.pyCGM.norm2d(v)

2D Vector normalization.

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

Parameters
vlist

A 3D vector.

Returns
float

The normalization of the vector as a float.

Examples

>>> import numpy as np
>>> from .pyCGM import norm2d
>>> v = [105.14, 101.89, 326.77]
>>> np.around(norm2d(v), 2)
358.07