distance_point_point

marxs.math.utils.distance_point_point(h_p1, h_p2)[source] [edit on github]

Calculate the Eukledian distance between 2 points

Parameters:
h_p1, h_p2np.ndarray of shape (4) or (N, 4)

homogeneous coordiantes of input points

Returns:
dnp.array of shape (1) or (N)

Eukledian distance between those points