autopdex.geometry.psdf_infinite_cylinder
- autopdex.geometry.psdf_infinite_cylinder(x, x_p1, normal, radius)[source]
Positive normalized smooth distance function to 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 positive distance from the point x to the infinite cylinder. Zero outside of the cylinder.
- Return type:
float