pyCGM_Single.pycgmKinetics.distance

pyCGM_Single.pycgmKinetics.distance(p0, p1)

Calculate distance between two points

Parameters
p0list

An x, y, z coordinate point.

p1list

An x, y, z coordinate point.

Returns
float

Returns distance between p0 and p1.

Examples

>>> import numpy as np
>>> from .pycgmKinetics import distance
>>> p0 = [1,2,3]
>>> p1 = [4,5,6]
>>> np.around(distance(p0,p1), 2)
5.2