warp.closest_point_edge_edge#

warp.closest_point_edge_edge(
p1: vec3f,
q1: vec3f,
p2: vec3f,
q2: vec3f,
epsilon: float32,
) vec3f#
  • Kernel

  • Differentiable

Find the closest points between two edges.

Parameters:
  • p1 – First point of first edge

  • q1 – Second point of first edge

  • p2 – First point of second edge

  • q2 – Second point of second edge

  • epsilon – Zero tolerance for determining if points in an edge are degenerate.

  • out – vec3 output containing (s,t,d), where s in [0,1] is the barycentric weight for the first edge, t is the barycentric weight for the second edge, and d is the distance between the two edges at these two closest points.

Returns:

Barycentric weights to the points on each edge, as well as the closest distance between the edges.