autopdex.geometry.psdf_trimmed_line

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

Positive normalized smooth distance function of a line segment going from x_p1 to x_p2.

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

  • x_p1 (jnp.ndarray) – Starting point of the line segment.

  • x_p2 (jnp.ndarray) – Ending point of the line segment.

Returns:

The positive distance from the point x to the line segment defined by x_p1 and x_p2.

Return type:

float