pyrobopath.tools.linalg.norm3#

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

A simple vector norm for vectors of length 3

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

Parameters:

v – a three dimensional vector

Returns:

the magnitude of the vector v

Return type:

float