autopdex.geometry.sdf_nd_planes

autopdex.geometry.sdf_nd_planes(x, x_p1, x_p2)[source]

Normalized signed smooth distance function, positive between points (1D), lines (2D), and n-dimensional planes (nD).

Parameters:
  • x (jnp.ndarray) – The point where the distance is evaluated.

  • x_p1 (jnp.ndarray) – Point on the first plane.

  • x_p2 (jnp.ndarray) – Point on the second plane.

Returns:

The signed distance from the point x to the planes defined by x_p1 and x_p2.

Return type:

float