autopdex.geometry.select_on_line
- autopdex.geometry.select_on_line(x_q, x_p1, x_p2)[source]
Select the indices of points that lie on a line segment defined by two points (non-jittable).
- Parameters:
x_q (jnp.ndarray) – Array of points to be checked.
x_p1 (jnp.ndarray) – The starting point of the line segment.
x_p2 (jnp.ndarray) – The ending point of the line segment.
- Returns:
Array of indices of points that lie on the line segment.
- Return type:
jnp.ndarray