distance_point_point

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

Calculate the Euclidean distance between 2 points

Parameters

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

homogeneous coordinates of input points

Returns

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

Euclidean distance between those points