autopdex.geometry.on_lines

autopdex.geometry.on_lines(x_q, x_p1, x_p2)[source]

Check if multiple points lie on a line segment defined by two points (jitted).

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 booleans indicating whether each point lies on the line segment.

Return type:

jnp.ndarray