autopdex.geometry.psdf_cylinder
- autopdex.geometry.psdf_cylinder(x, x_0, normal, radius, length)[source]
Positive normalized smooth distance function to a cylinder in 3D.
- Parameters:
x (jnp.ndarray) – The point where the distance is evaluated.
x_0 (jnp.ndarray) – The starting point on the center line of the cylinder.
normal (jnp.ndarray) – The direction vector of the cylinder.
radius (float) – The radius of the cylinder.
length (float) – The length of the cylinder.
- Returns:
The positive distance from the point x to the cylinder. Zero outside of the cylinder.
- Return type:
float