autopdex.geometry.normal

autopdex.geometry.normal(x_p1, x_p2)[source]

Normalized vector showing from x_p1 to x_p2.

result = (x_p2 - x_p1) / jnp.linalg.norm(x_p2 - x_p1)