autopdex.geometry.psdf_nd_sphere
- autopdex.geometry.psdf_nd_sphere(x, xc, r)[source]
Interior positive normalized smooth distance function of an n-dimensional sphere.
- 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 positive distance from the point x to the region outside of a n-dimensional sphere.
- Return type:
float