pyrobopath.tools.linalg.norm2#

pyrobopath.tools.linalg.norm2(v: List[float] | Tuple[float, float] | ndarray[Tuple[Literal[2]], dtype[floating]]) float[source]#

A simple vector norm for vectors of length 3

~2x as fast as np.linalg.norm()

Parameters:

v – a two dimensional vector

Returns:

the magnitude of the vector v

Return type:

float