autopdex.geometry.sdf_cuboid

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

Normalized signed smooth distance function to a cuboid, positive in the interior.

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

  • x_p1 (jnp.ndarray) – The point with minimum coordinates of the cuboid.

  • x_p2 (jnp.ndarray) – The point with maximum coordinates of the cuboid.

Returns:

The signed distance from the point x to the cuboid.

Return type:

float