neurom.morphmath.point_dist2

neurom.morphmath.point_dist2(p1, p2)[source]

compute the square of the euclidian distance between two 3D points

Parameters:
  • p2 (p1,) – indexable objects with
  • 0, 1, 2 corresponding to 3D cartesian coordinates. (indices) –
Returns:

The square of the euclidian distance between the points.