point_tetrahedron_dist#

iskra.geometry.distances.point_tetrahedron_dist(x: Tensor, tetrahedra: Tensor) Tensor[SOURCE]#

Distance of a point to its closest point on an tetrahedron.

Implements point_dist(x, tetrahedron_project(x, tetrahedra)) using iskra.point_dist and iskra.tetrahedron_project. See documentation of these two functions for more information.

Parameters:
  • x (Tensor[Float, [Bs1, Dim]]) – Set of points.

  • tetrahedra (Tensor[Float, [Bs2, 4, Dim]]) – Set of tetrahedra.

Returns:

(Tensor[Float, [Bs3]]) – Distance of x to closest point on its corresponding tetrahedron. Bs3 is the broadcasted shape when broadcasting Bs1 and Bs2.