autopdex.geometry.sdf_cylinder
- autopdex.geometry.sdf_cylinder(x, x_0, normal, radius, length)[source]
Normalized signed smooth distance function, positive within 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 signed distance from the point x to the cylinder.
- Return type:
float