autopdex.geometry.sdf_normal_to_direction

autopdex.geometry.sdf_normal_to_direction(x, x_p1, normal)[source]

Normalized signed smooth distance function to a plane defined by one point and a normal vector, positive in the direction of the normal vector.

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

  • x_p1 (jnp.ndarray) – A point on the plane.

  • normal (jnp.ndarray) – The normal vector of the plane.

Returns:

The distance from the point x to the plane defined by x_p1 and the normal vector.

Return type:

float