autopdex.geometry.sdf_convex_polygon_2d
- autopdex.geometry.sdf_convex_polygon_2d(x, x_p_list)[source]
Normalized signed smooth distance function to a convex polygon (2D), positive in the interior.
- Parameters:
x (jnp.ndarray) – The point where the distance is evaluated.
x_p_list (list of jnp.ndarray) – List of vertices of the polygon in counter-clockwise order.
- Returns:
The signed distance from the point x to the convex polygon.
- Return type:
float