autopdex.geometry.sdf_infinite_cylinder
- autopdex.geometry.sdf_infinite_cylinder(x, x_p1, normal, radius)[source]
Normalized signed smooth distance function, positive within an infinite cylinder in 3D.
- Parameters:
x (jnp.ndarray) – The point where the distance is evaluated.
x_p1 (jnp.ndarray) – A point on the center line of the cylinder.
normal (jnp.ndarray) – The direction vector of the cylinder.
radius (float) – The radius of the cylinder.
- Returns:
The signed distance from the point x to the infinite cylinder.
- Return type:
float