autopdex.geometry.sdf_nd_sphere

autopdex.geometry.sdf_nd_sphere(x, xc, r)[source]

Normalized signed distance function to n-dimensional sphere, positive in the interior.

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

  • xc (jnp.ndarray) – Center of the sphere.

  • r (float) – Radius of the sphere.

Returns:

The normalized signed distance from the point x to the n-dimensional sphere defined by center xc and radius r.

Return type:

float