autopdex.geometry.sdf_infinite_line

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

Normalized signed smooth distance function of an infinite line going through x_p1 and x_p2.

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

  • x_p1 (jnp.ndarray) – First point on the infinite line.

  • x_p2 (jnp.ndarray) – Second point on the infinite line.

Returns:

The signed distance from the point x to the infinite line defined by x_p1 and x_p2.

Return type:

float